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:
parent
87e1dd2982
commit
8edd642381
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue