[macruby-changes] [152] MacRuby/trunk/test/ruby/test_array.rb
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 17 20:48:17 PDT 2008
Revision: 152
http://trac.macosforge.org/projects/ruby/changeset/152
Author: lsansonetti at apple.com
Date: 2008-04-17 20:48:17 -0700 (Thu, 17 Apr 2008)
Log Message:
-----------
updated tests to reflect the new String changes
Modified Paths:
--------------
MacRuby/trunk/test/ruby/test_array.rb
Modified: MacRuby/trunk/test/ruby/test_array.rb
===================================================================
--- MacRuby/trunk/test/ruby/test_array.rb 2008-04-18 03:47:56 UTC (rev 151)
+++ MacRuby/trunk/test/ruby/test_array.rb 2008-04-18 03:48:17 UTC (rev 152)
@@ -461,7 +461,7 @@
def test_collect
a = @cls[ 1, 'cat', 1..1 ]
- assert_equal([ Fixnum, String, Range], a.collect {|e| e.class} )
+ assert_equal([ Fixnum, NSCFString, Range], a.collect {|e| e.class} )
assert_equal([ 99, 99, 99], a.collect { 99 } )
assert_equal([], @cls[].collect { 99 })
@@ -475,8 +475,8 @@
# also update map!
def test_collect!
a = @cls[ 1, 'cat', 1..1 ]
- assert_equal([ Fixnum, String, Range], a.collect! {|e| e.class} )
- assert_equal([ Fixnum, String, Range], a)
+ assert_equal([ Fixnum, NSCFString, Range], a.collect! {|e| e.class} )
+ assert_equal([ Fixnum, NSCFString, Range], a)
a = @cls[ 1, 'cat', 1..1 ]
assert_equal([ 99, 99, 99], a.collect! { 99 } )
@@ -787,8 +787,8 @@
# also update collect!
def test_map!
a = @cls[ 1, 'cat', 1..1 ]
- assert_equal(@cls[ Fixnum, String, Range], a.map! {|e| e.class} )
- assert_equal(@cls[ Fixnum, String, Range], a)
+ assert_equal(@cls[ Fixnum, NSCFString, Range], a.map! {|e| e.class} )
+ assert_equal(@cls[ Fixnum, NSCFString, Range], a)
a = @cls[ 1, 'cat', 1..1 ]
assert_equal(@cls[ 99, 99, 99], a.map! { 99 } )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080417/94be7dbc/attachment.html
More information about the macruby-changes
mailing list