Revision
152
Author
lsansonetti@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

Diff

Modified: MacRuby/trunk/test/ruby/test_array.rb (151 => 152)


--- 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 } )