summaryrefslogtreecommitdiffhomepage
path: root/test/t
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2012-12-03 23:35:21 +0900
committerYukihiro Matz Matsumoto <[email protected]>2012-12-03 23:35:21 +0900
commit30d7c60cfd124cb86e9691f1d87f3478957afd4d (patch)
tree590bf2b8af6b04d546c335a8b9e5d95788181970 /test/t
parent97545127162aca8354c2436308bf1f5b284a2340 (diff)
downloadmruby-30d7c60cfd124cb86e9691f1d87f3478957afd4d.tar.gz
mruby-30d7c60cfd124cb86e9691f1d87f3478957afd4d.zip
Array#[]= should return assigning value; close #584
Diffstat (limited to 'test/t')
-rw-r--r--test/t/array.rb4
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