Skip to content

Commit 59f2ca0

Browse files
committed
Misplaced "end"
1 parent c837576 commit 59f2ca0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/selftest.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def test_parser
532532

533533
# Trailing ','
534534
test_exp("{ :foo => 42, } ","[:do, [:hash, [:pair, :\":foo\", 42]]]")
535-
end
535+
536536
prog = mock_parse("require 'core/base'\n{}\n")
537537
expect_eq(prog[2].position.lineno, 2, "Parser position")
538538

@@ -544,6 +544,8 @@ def __x
544544
end
545545
')
546546
expect_eq(prog[1][3][0][3][0].position.lineno, 4, "Parser line number should match")
547+
end
548+
547549
def test_destructuring
548550
test_exp("a,b = [42,123]", "[:do, [:assign, [:destruct, :a, :b], [:array, 42, 123]]]")
549551
end

0 commit comments

Comments
 (0)