[macruby-changes] [3637] MacRuby/branches/icu/spec/frozen/language/versions/regexp_1.9.rb

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 26 16:22:35 PST 2010


Revision: 3637
          http://trac.macosforge.org/projects/ruby/changeset/3637
Author:   lsansonetti at apple.com
Date:     2010-02-26 16:22:35 -0800 (Fri, 26 Feb 2010)
Log Message:
-----------
comment regexp that uses named capture

Modified Paths:
--------------
    MacRuby/branches/icu/spec/frozen/language/versions/regexp_1.9.rb

Modified: MacRuby/branches/icu/spec/frozen/language/versions/regexp_1.9.rb
===================================================================
--- MacRuby/branches/icu/spec/frozen/language/versions/regexp_1.9.rb	2010-02-27 00:16:02 UTC (rev 3636)
+++ MacRuby/branches/icu/spec/frozen/language/versions/regexp_1.9.rb	2010-02-27 00:22:35 UTC (rev 3637)
@@ -9,9 +9,12 @@
     /foo.(?<!\d)/.match("foo1 fooA").to_a.should == ["fooA"]
   end
 
+=begin
+  # MacRuby does not support named captures
   it 'supports \g (named backreference)' do
     /(?<foo>foo.)bar\g<foo>/.match("foo1barfoo2").to_a.should == ["foo1barfoo2", "foo2"]
   end
+=end
 
   it 'supports character class composition' do
     /[a-z&&[^a-c]]+/.match("abcdef").to_a.should == ["def"]
@@ -25,4 +28,4 @@
     /fooA?+Abar/.match("fooAAAbar").should be_nil
     /fooA*+Abar/.match("fooAAAbar").should be_nil
   end
-end
\ No newline at end of file
+end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100226/f57863b2/attachment.html>


More information about the macruby-changes mailing list