1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test for immature statement

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-01-29 12:53:24 +00:00
parent 1997f7807b
commit 62acbb9805

View file

@ -35,6 +35,11 @@ module TestIRB
result)
end
def test_immature_statement
src = "if false\n"
assert_equal([[src, 1]], top_level_statement(src))
end
def top_level_statement(lines)
input = InputLines.new(lines, "r")
scanned = []