test/test_lineinput.rb in review-1.2.0 vs test/test_lineinput.rb in review-1.3.0
- old
+ new
@@ -181,13 +181,13 @@
assert_equal 5, li.lineno
data = ''
li.until_terminator(%r<\A//\}>) {|l| data << l }
assert_equal "jkl\nmno", data
- assert_equal 7, li.lineno
+ assert_equal 8, li.lineno
end
- def test_until_terminator
+ def test_until_terminator2
io = StringIO.new("abc\ndef\n//}\nghi\n//}")
li = LineInput.new(io)
data = li.getblock(%r<\A//\}>)
assert_equal ["abc\n", "def\n"], data