Revision
181
Author
lsansonetti@apple.com
Date
2008-04-30 13:14:30 -0700 (Wed, 30 Apr 2008)

Log Message

adding more tests

Modified Paths

Diff

Modified: MacRuby/trunk/test/ruby/test_string.rb (180 => 181)


--- MacRuby/trunk/test/ruby/test_string.rb	2008-04-30 06:31:44 UTC (rev 180)
+++ MacRuby/trunk/test/ruby/test_string.rb	2008-04-30 20:14:30 UTC (rev 181)
@@ -1232,6 +1232,7 @@
     assert_equal(S("hippo"), S("hello").tr(S("el"), S("ip")))
     assert_equal(S("*e**o"), S("hello").tr(S("^aeiou"), S("*")))
     assert_equal(S("hal"),   S("ibm").tr(S("b-z"), S("a-z")))
+    assert_equal(S("-p"),    S("-p").tr(S("^-pv"), "x"))
   end
 
   def test_tr!

Modified: MacRuby/trunk/test/ruby/test_stringchar.rb (180 => 181)


--- MacRuby/trunk/test/ruby/test_stringchar.rb	2008-04-30 06:31:44 UTC (rev 180)
+++ MacRuby/trunk/test/ruby/test_stringchar.rb	2008-04-30 20:14:30 UTC (rev 181)
@@ -70,6 +70,7 @@
     assert_equal("\0", "\000")
     assert_equal("\0", [0].pack('C'))
     assert_equal(1, "\0".size) 
+    assert_equal("./\055", './-')
 
     # character constants(assumes ASCII)
     assert_equal(?a, "a"[0])