diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2012-12-03 23:35:21 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2012-12-03 23:35:21 +0900 |
| commit | 30d7c60cfd124cb86e9691f1d87f3478957afd4d (patch) | |
| tree | 590bf2b8af6b04d546c335a8b9e5d95788181970 /test | |
| parent | 97545127162aca8354c2436308bf1f5b284a2340 (diff) | |
| download | mruby-30d7c60cfd124cb86e9691f1d87f3478957afd4d.tar.gz mruby-30d7c60cfd124cb86e9691f1d87f3478957afd4d.zip | |
Array#[]= should return assigning value; close #584
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/array.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/array.rb b/test/t/array.rb index 560faf8e7..90fa85c7f 100644 --- a/test/t/array.rb +++ b/test/t/array.rb @@ -74,8 +74,8 @@ assert('Array#[]=', '15.2.12.5.5') do e3 = e1 end - [1,2,3].[]=(1,4) == [1, 4, 3] and - [1,2,3].[]=(1,2,3) == [1, 3] and + [1,2,3].[]=(1,4) == 4 and + [1,2,3].[]=(1,2,3) == 3 and e2.class == ArgumentError and e3.class == ArgumentError end |
