From 30d7c60cfd124cb86e9691f1d87f3478957afd4d Mon Sep 17 00:00:00 2001 From: Yukihiro Matz Matsumoto Date: Mon, 3 Dec 2012 23:35:21 +0900 Subject: Array#[]= should return assigning value; close #584 --- test/t/array.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit v1.2.3