diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-06-10 22:16:05 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-06-10 22:16:05 -0700 |
| commit | 5ca2d5e0ee6127d33e2b0d18a12e975f5235cae4 (patch) | |
| tree | a9967ec1be0bb0636ab11630b2eef20dbc4556d8 /test/t/string.rb | |
| parent | bd83a460c3c1f4ac8987657ab63bad87b59caf02 (diff) | |
| parent | 3bb09f99284d6da3ee5192fb4636ad73981ad1f1 (diff) | |
| download | mruby-5ca2d5e0ee6127d33e2b0d18a12e975f5235cae4.tar.gz mruby-5ca2d5e0ee6127d33e2b0d18a12e975f5235cae4.zip | |
Merge pull request #256 from masamitsu-murase/modify_string_slice
"slice" of shared string returns invalid result
Diffstat (limited to 'test/t/string.rb')
| -rw-r--r-- | test/t/string.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/t/string.rb b/test/t/string.rb index 964ec0e63..d7182fc38 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -256,6 +256,9 @@ assert('String#slice', '15.2.10.5.34') do d1 = 'abc'.slice(0, 0) e1 = 'abc'.slice(1, 2) + # slice of shared string + e11 = e1.slice(0) + # args is RegExp # TODO SEGFAULT ATM @@ -265,7 +268,7 @@ assert('String#slice', '15.2.10.5.34') do a == 'a' and b == 'c' and c == nil and d == nil and a1 == nil and b1 == nil and c1 == nil and d1 == '' and - e1 == 'bc' and + e1 == 'bc' and e11 == 'b' and a3 == 'bc' and b3 == nil end |
