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:
parent
1997f7807b
commit
62acbb9805
1 changed files with 5 additions and 0 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue