We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6718ddf commit f5cee21Copy full SHA for f5cee21
test/test_pp.rb
@@ -238,7 +238,8 @@ class PPAbstractSyntaxTree < Test::Unit::TestCase
238
AST = RubyVM::AbstractSyntaxTree
239
def test_lasgn_literal
240
ast = AST.parse("_=1")
241
- expected = "(SCOPE@1:0-1:3 tbl: [:_] args: nil body: (LASGN@1:0-1:3 :_ (INTEGER@1:2-1:3 1)))"
+ integer = RUBY_VERSION >= "3.4." ? "INTEGER" : "LIT"
242
+ expected = "(SCOPE@1:0-1:3 tbl: [:_] args: nil body: (LASGN@1:0-1:3 :_ (#{integer}@1:2-1:3 1)))"
243
assert_equal(expected, PP.singleline_pp(ast, ''.dup), ast)
244
end
245
0 commit comments