summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-18 05:02:24 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-18 05:02:24 +0000
commitc295638162ef594184900f934c92515986a5ab52 (patch)
tree54e93329fb2f2f579213e7755f3a75c5c6bab308 /bootstraptest
parent8d81bcd71fc31b53fcc914f401394c22bbc2fac3 (diff)
downloadruby-c295638162ef594184900f934c92515986a5ab52.tar.gz
ruby-c295638162ef594184900f934c92515986a5ab52.tar.xz
ruby-c295638162ef594184900f934c92515986a5ab52.zip
more tests.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_knownbug.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index ce78d4109..d8d69ba16 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -260,4 +260,10 @@ assert_equal 'true', %q{
"\xa1\xa1".force_encoding("euc-jp")
}
+assert_equal 'a', %q{
+ s = "a".dup.force_encoding("EUC-JP")
+ s.length
+ s[0,2]
+}
+