aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pp.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-03 00:57:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-03 00:57:06 +0000
commit8edd642381e6f5b53dd45de641aadc4bebee1603 (patch)
treea0bdf9d2b27145d31e09998527984962da518c12 /test/test_pp.rb
parent87e1dd2982dd472de557f62468d77211c8a71bff (diff)
downloadruby-8edd642381e6f5b53dd45de641aadc4bebee1603.tar.gz
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
Diffstat (limited to 'test/test_pp.rb')
-rw-r--r--test/test_pp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_pp.rb b/test/test_pp.rb
index 01a5a409b4..d0104651ea 100644
--- a/test/test_pp.rb
+++ b/test/test_pp.rb
@@ -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