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

test_pp.rb: show the node when failed

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-12-03 00:57:06 +00:00
parent 87e1dd2982
commit 8edd642381

View file

@ -199,7 +199,7 @@ class PPAbstractSyntaxTree < Test::Unit::TestCase
def test_literal
ast = AST.parse("1")
expected = "(SCOPE@1:0-1:1 tbl: [] args: nil body: (LIT@1:0-1:1 1))"
assert_equal(expected, PP.singleline_pp(ast, ''.dup))
assert_equal(expected, PP.singleline_pp(ast, ''.dup), ast)
end
end