diff options
author | yui-knk <[email protected]> | 2024-01-01 01:31:28 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-01-09 16:07:19 +0900 |
commit | db476cc71cb6c690bd5b32cebebf7ebcbff604ad (patch) | |
tree | 3fa0bfc4a58f6016e7cad7304e951b063f94209f /test/ruby/test_rubyoptions.rb | |
parent | f82a6172a2a96815f9478410116d35c76b56efb5 (diff) |
Introduce NODE_SYM to manage symbol literal
`:sym` was managed by `NODE_LIT` with `Symbol` object.
This commit introduces `NODE_SYM` so that
1. Symbol literal is detectable from AST Node
2. Reduce dependency on ruby object
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 6298c829e3..b8327d15b5 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -568,12 +568,14 @@ class TestRubyOptions < Test::Unit::TestCase t.puts "if a = {}; end" t.puts "if a = {1=>2}; end" t.puts "if a = {3=>a}; end" + t.puts "if a = :sym; end" t.flush err = ["#{t.path}:1:#{warning}", "#{t.path}:2:#{warning}", "#{t.path}:3:#{warning}", "#{t.path}:5:#{warning}", "#{t.path}:6:#{warning}", + "#{t.path}:8:#{warning}", ] feature4299 = '[ruby-dev:43083]' assert_in_out_err(["-w", t.path], "", [], err, feature4299) |