aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_m17n.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-05 15:05:48 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-05 15:05:48 +0000
commit91538a3882bcb23f9f93f7738da34d4370f54558 (patch)
tree8ebba24fcb0d434742f7a0ae5dd476187bdbab60 /test/ruby/test_m17n.rb
parent61b8250adc1bca756e92174aa90a49e55efd2804 (diff)
downloadruby-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.rb2
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