test/test_index.rb in review-1.5.0 vs test/test_index.rb in review-1.6.0
- old
+ new
@@ -153,7 +153,22 @@
assert_raise ReVIEW::KeyError do
assert_equal [1,1], index['target'].number
end
end
+ def test_HeadelineIndex8
+ src = <<-EOB
+= chap1
+== sec1
+=== sec1-1
+==== sec1-1-1
+
+ EOB
+ book = Book::Base.load
+ chap = Book::Chapter.new(book, 1, '-', nil)
+ index = Book::HeadlineIndex.parse(src, chap)
+ assert_equal "1.1.1", index.number('sec1-1')
+ end
+
+
end