diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-12 12:58:49 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-12 12:58:49 +0900 |
| commit | 30a062c165f31f31f8be65bd51d313a2d25f0bd9 (patch) | |
| tree | a85b6477a724d5d6ca48c7484b427d2d8f328209 /test | |
| parent | ff4925b804cc70aa8571e9aed2793114ef0223f6 (diff) | |
| download | mruby-30a062c165f31f31f8be65bd51d313a2d25f0bd9.tar.gz mruby-30a062c165f31f31f8be65bd51d313a2d25f0bd9.zip | |
String#split("") should split per character (byte for now)
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/string.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/t/string.rb b/test/t/string.rb index c422133e3..3338e4318 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -275,13 +275,10 @@ end # TODO Broken ATM assert('String#split', '15.2.10.5.35') do # without RegExp behavior is actually unspecified - a = 'abc abc abc'.split - b = 'a,b,c,,d'.split(',') - c = 'abc abc abc'.split(nil) - - a == ['abc', 'abc', 'abc'] and - b == ["a", "b", "c", "", "d"] and - c == ['abc', 'abc', 'abc'] + 'abc abc abc'.split == ['abc', 'abc', 'abc'] and + 'a,b,c,,d'.split(',') == ["a", "b", "c", "", "d"] and + 'abc abc abc'.split(nil) == ['abc', 'abc', 'abc'] and + 'abc'.split("") == ['a', 'b', 'c'] end # TODO ATM broken assert('String#sub', '15.2.10.5.36') do |
