diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-28 21:39:13 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-29 00:00:26 +0900 |
commit | c730c25354a18e99b9147c30ecc8f986d6a172f1 (patch) | |
tree | 669fc29e3ed575fae33144331ab48ab8427a21fa /test/ruby/test_literal.rb | |
parent | fb568fe724b0c8b2582263ed859ad10f0bd90d38 (diff) |
parse.y: warn escaped whitespace
* parse.y (warn_space_char_code): warn whitespace characters
escaped with meta/control prefix.
Diffstat (limited to 'test/ruby/test_literal.rb')
-rw-r--r-- | test/ruby/test_literal.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_literal.rb b/test/ruby/test_literal.rb index ff40474bf7..3f5acde3df 100644 --- a/test/ruby/test_literal.rb +++ b/test/ruby/test_literal.rb @@ -45,6 +45,7 @@ class TestRubyLiteral < Test::Unit::TestCase assert_equal "A", ?A assert_instance_of String, ?\n assert_equal "\n", ?\n + assert_equal " ", ?\s assert_equal " ", ?\ # space assert_equal '', '' assert_equal 'string', 'string' |