diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-05 15:05:48 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-05 15:05:48 +0000 |
commit | 91538a3882bcb23f9f93f7738da34d4370f54558 (patch) | |
tree | 8ebba24fcb0d434742f7a0ae5dd476187bdbab60 /test/ruby/test_m17n.rb | |
parent | 61b8250adc1bca756e92174aa90a49e55efd2804 (diff) | |
download | ruby-91538a3882bcb23f9f93f7738da34d4370f54558.tar.gz |
* string.c (String#b): Allow code range scan to happen later so
ascii_only? on a result string returns the correct value.
[ruby-core:55315] [Bug #8496]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_m17n.rb')
-rw-r--r-- | test/ruby/test_m17n.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index 98f79b3f76..edc8e4c28f 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -1488,6 +1488,8 @@ class TestM17N < Test::Unit::TestCase assert_equal(true, s.b.tainted?) s.untrust assert_equal(true, s.b.untrusted?) + s = "abc".b + assert_equal(true, s.b.ascii_only?) end def test_scrub |