[macruby-changes] [3801] MacRuby/trunk/spec/frozen/core/regexp

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 17 22:34:06 PDT 2010


Revision: 3801
          http://trac.macosforge.org/projects/ruby/changeset/3801
Author:   lsansonetti at apple.com
Date:     2010-03-17 22:34:06 -0700 (Wed, 17 Mar 2010)
Log Message:
-----------
comment a couple of esoteric regexps that do not compile with ICU yet

Modified Paths:
--------------
    MacRuby/trunk/spec/frozen/core/regexp/encoding_spec.rb
    MacRuby/trunk/spec/frozen/core/regexp/fixed_encoding_spec.rb

Modified: MacRuby/trunk/spec/frozen/core/regexp/encoding_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/core/regexp/encoding_spec.rb	2010-03-18 05:26:07 UTC (rev 3800)
+++ MacRuby/trunk/spec/frozen/core/regexp/encoding_spec.rb	2010-03-18 05:34:06 UTC (rev 3801)
@@ -20,9 +20,11 @@
       /#{}\xc2\xa1/n.encoding.should == Encoding::ASCII_8BIT
     end
 
+=begin # TODO: will not compile on MacRuby
     it "defaults to UTF-8 if \\u escapes appear" do
       /\u{9879}/.encoding.should == Encoding::UTF_8
     end
+=end
 
     it "defaults to UTF-8 if a literal UTF-8 character appears" do
       /¥/.encoding.should == Encoding::UTF_8

Modified: MacRuby/trunk/spec/frozen/core/regexp/fixed_encoding_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/core/regexp/fixed_encoding_spec.rb	2010-03-18 05:26:07 UTC (rev 3800)
+++ MacRuby/trunk/spec/frozen/core/regexp/fixed_encoding_spec.rb	2010-03-18 05:34:06 UTC (rev 3801)
@@ -24,9 +24,11 @@
       /needle/e.fixed_encoding?.should be_true
     end
 
+=begin # XXX will not compile on MacRuby
     it "returns true if the Regexp contains a \\u escape" do
       /needle \u{8768}/.fixed_encoding?.should be_true
     end
+=end
 
     it "returns true if the Regexp contains a UTF-8 literal" do
       /文字化け/.fixed_encoding?.should be_true
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100317/cbd43e5f/attachment.html>


More information about the macruby-changes mailing list