summaryrefslogtreecommitdiff
path: root/test/ruby/test_unicode_escape.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-02 02:47:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-02 02:47:11 +0000
commit80045bc2a9e12012d6d16517ea5cb037e67eb2c1 (patch)
treea1040a60e1f79361995a5f3cc0794400c0f56ea4 /test/ruby/test_unicode_escape.rb
parent76bb017ad2c818f5250047a935e1ba44e1a7c40d (diff)
downloadruby-80045bc2a9e12012d6d16517ea5cb037e67eb2c1.tar.gz
parse.y: relax spaces
* parse.y (parser_tokadd_utf8): relax restriction spaces inside "\u{...}". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_unicode_escape.rb')
-rw-r--r--test/ruby/test_unicode_escape.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_unicode_escape.rb b/test/ruby/test_unicode_escape.rb
index 108cf804e2..5913bb0130 100644
--- a/test/ruby/test_unicode_escape.rb
+++ b/test/ruby/test_unicode_escape.rb
@@ -260,9 +260,9 @@ EOS
eval %q("\u{123.}") # bad char
}
- assert_raise(SyntaxError) { eval %q("\u{123 456 }")} # extra space
- assert_raise(SyntaxError) { eval %q("\u{ 123 456}")} # extra space
- assert_raise(SyntaxError) { eval %q("\u{123 456}")} # extra space
+ # assert_raise(SyntaxError) { eval %q("\u{123 456 }")} # extra space
+ # assert_raise(SyntaxError) { eval %q("\u{ 123 456}")} # extra space
+ # assert_raise(SyntaxError) { eval %q("\u{123 456}")} # extra space
assert_raise(SyntaxError) { eval %q("\uD800") } # surrogate block
assert_raise(SyntaxError) { eval %q("\uDCBA") } # surrogate block