[3637] MacRuby/branches/icu/spec/frozen/language/versions/regexp_1.9.rb
Revision: 3637 http://trac.macosforge.org/projects/ruby/changeset/3637 Author: lsansonetti@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
participants (1)
-
source_changes@macosforge.org