diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-06 20:12:35 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-06 20:12:35 +0900 |
| commit | ce1544783dd1f16dfca8a0ac42971667b3ae0d56 (patch) | |
| tree | 3b889fe50f3016847199c0cc3040f82e258f1322 | |
| parent | 63dc51c2f90b435361491582aa380bbb5d0476fd (diff) | |
| parent | 8df73d250b3e19dee511dc59a93cabbc266c5308 (diff) | |
| download | mruby-ce1544783dd1f16dfca8a0ac42971667b3ae0d56.tar.gz mruby-ce1544783dd1f16dfca8a0ac42971667b3ae0d56.zip | |
Merge pull request #2020 from iij/pr-remove-unicode-escape-tests
remove tests for unicode chars in regular expression literals.
| -rw-r--r-- | test/t/unicode.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/test/t/unicode.rb b/test/t/unicode.rb index a8e8c0e14..7edd65ef2 100644 --- a/test/t/unicode.rb +++ b/test/t/unicode.rb @@ -33,28 +33,3 @@ assert('braced \u notation test') do assert_equal("\u{10000}", "\xF0\x90\x80\x80") assert_equal("\u{10FFFF}", "\xF4\x8F\xBF\xBF") end - -# Test regular expressions only if implemented -begin - Regexp - have_regexp = true -rescue NameError - have_regexp = false -end -if have_regexp then - assert('Testing \u in regular expressions') do - # The regular expression uses the unbraced notation where the string uses - # the braced notation, and vice versa, so these tests will fail if the \u - # modification is not applied - - # Test of unbraced \u notation in a regular expression - assert_false(/\u0300/ =~ "\u{02FF}") - assert_true( /\u0300/ =~ "\u{0300}") - assert_false(/\u0300/ =~ "\u{0301}") - - # Test of braced \u notation in a regular expression - assert_false(/\u{0300}/ =~ "\u02FF") - assert_true( /\u{0300}/ =~ "\u0300") - assert_false(/\u{0300}/ =~ "\u0301") - end -end |
