[macruby-changes] [3765] MacRuby/trunk/spec/frozen/language/regexp
source_changes at macosforge.org
source_changes at macosforge.org
Mon Mar 15 15:01:12 PDT 2010
Revision: 3765
http://trac.macosforge.org/projects/ruby/changeset/3765
Author: lsansonetti at apple.com
Date: 2010-03-15 15:01:12 -0700 (Mon, 15 Mar 2010)
Log Message:
-----------
mark 2 specs as not compliant on macruby because of ICU limitations
Modified Paths:
--------------
MacRuby/trunk/spec/frozen/language/regexp/back-references_spec.rb
MacRuby/trunk/spec/frozen/language/regexp/repetition_spec.rb
Modified: MacRuby/trunk/spec/frozen/language/regexp/back-references_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/language/regexp/back-references_spec.rb 2010-03-15 22:00:44 UTC (rev 3764)
+++ MacRuby/trunk/spec/frozen/language/regexp/back-references_spec.rb 2010-03-15 22:01:12 UTC (rev 3765)
@@ -42,7 +42,7 @@
/(foo.)\1/.match("foo1foo2").should be_nil
end
- not_compliant_on :ironruby do
+ not_compliant_on :ironruby, :macruby do
it 'resets nested \<n> backreference before match of outer subexpression' do
/(a\1?){2}/.match("aaaa").to_a.should == ["aa", "a"]
end
Modified: MacRuby/trunk/spec/frozen/language/regexp/repetition_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/language/regexp/repetition_spec.rb 2010-03-15 22:00:44 UTC (rev 3764)
+++ MacRuby/trunk/spec/frozen/language/regexp/repetition_spec.rb 2010-03-15 22:01:12 UTC (rev 3765)
@@ -35,9 +35,11 @@
/.([0-9]){3,5}?foo/.match("9876543210foo").to_a.should == ["543210foo", "0"]
end
end
-
- it 'does not treat {m,n}+ as possessive' do
- /foo(A{0,1}+)Abar/.match("fooAAAbar").to_a.should == ["fooAAAbar", "AA"]
+
+ not_compliant_on :macruby do
+ it 'does not treat {m,n}+ as possessive' do
+ /foo(A{0,1}+)Abar/.match("fooAAAbar").to_a.should == ["fooAAAbar", "AA"]
+ end
end
it 'supports ? (0 or 1 of previous subexpression)' do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100315/133820a9/attachment.html>
More information about the macruby-changes
mailing list