[前][次][番号順一覧][スレッド一覧]

ruby-changes:53921

From: nobu <ko1@a...>
Date: Mon, 3 Dec 2018 09:57:10 +0900 (JST)
Subject: [ruby-changes:53921] nobu:r66141 (trunk): test_pp.rb: show the node when failed

nobu	2018-12-03 09:57:06 +0900 (Mon, 03 Dec 2018)

  New Revision: 66141

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66141

  Log:
    test_pp.rb: show the node when failed

  Modified files:
    trunk/test/test_pp.rb
Index: test/test_pp.rb
===================================================================
--- test/test_pp.rb	(revision 66140)
+++ test/test_pp.rb	(revision 66141)
@@ -199,7 +199,7 @@ class PPAbstractSyntaxTree < Test::Unit: https://github.com/ruby/ruby/blob/trunk/test/test_pp.rb#L199
   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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]