Revision: 3764 http://trac.macosforge.org/projects/ruby/changeset/3764 Author: lsansonetti@apple.com Date: 2010-03-15 15:00:44 -0700 (Mon, 15 Mar 2010) Log Message: ----------- remove unnecessary not_compliant_on call Modified Paths: -------------- MacRuby/trunk/spec/frozen/language/regexp/encoding_spec.rb Modified: MacRuby/trunk/spec/frozen/language/regexp/encoding_spec.rb =================================================================== --- MacRuby/trunk/spec/frozen/language/regexp/encoding_spec.rb 2010-03-13 09:07:51 UTC (rev 3763) +++ MacRuby/trunk/spec/frozen/language/regexp/encoding_spec.rb 2010-03-15 22:00:44 UTC (rev 3764) @@ -7,62 +7,60 @@ # core/regexp/encoding_spec.rb for 1.9 ruby_version_is ""..."1.9" do - not_compliant_on :macruby do - it 'supports /e (EUC encoding)' do - match = /./e.match("\303\251") - match.to_a.should == ["\303\251"] - end - - it 'supports /e (EUC encoding) with interpolation' do - match = /#{/./}/e.match("\303\251") - match.to_a.should == ["\303\251"] - end - - it 'supports /e (EUC encoding) with interpolation and /o' do - match = /#{/./}/e.match("\303\251") - match.to_a.should == ["\303\251"] - end - - it 'supports /n (Normal encoding)' do - /./n.match("\303\251").to_a.should == ["\303"] - end - - it 'supports /n (Normal encoding) with interpolation' do - /#{/./}/n.match("\303\251").to_a.should == ["\303"] - end - - it 'supports /n (Normal encoding) with interpolation and /o' do - /#{/./}/no.match("\303\251").to_a.should == ["\303"] - end - - it 'supports /s (SJIS encoding)' do - /./s.match("\303\251").to_a.should == ["\303"] - end - - it 'supports /s (SJIS encoding) with interpolation' do - /#{/./}/s.match("\303\251").to_a.should == ["\303"] - end - - it 'supports /s (SJIS encoding) with interpolation and /o' do - /#{/./}/so.match("\303\251").to_a.should == ["\303"] - end - - it 'supports /u (UTF8 encoding)' do - /./u.match("\303\251").to_a.should == ["\303\251"] - end + it 'supports /e (EUC encoding)' do + match = /./e.match("\303\251") + match.to_a.should == ["\303\251"] + end + + it 'supports /e (EUC encoding) with interpolation' do + match = /#{/./}/e.match("\303\251") + match.to_a.should == ["\303\251"] + end + + it 'supports /e (EUC encoding) with interpolation and /o' do + match = /#{/./}/e.match("\303\251") + match.to_a.should == ["\303\251"] + end + + it 'supports /n (Normal encoding)' do + /./n.match("\303\251").to_a.should == ["\303"] + end + + it 'supports /n (Normal encoding) with interpolation' do + /#{/./}/n.match("\303\251").to_a.should == ["\303"] + end + + it 'supports /n (Normal encoding) with interpolation and /o' do + /#{/./}/no.match("\303\251").to_a.should == ["\303"] + end + + it 'supports /s (SJIS encoding)' do + /./s.match("\303\251").to_a.should == ["\303"] + end + + it 'supports /s (SJIS encoding) with interpolation' do + /#{/./}/s.match("\303\251").to_a.should == ["\303"] + end + + it 'supports /s (SJIS encoding) with interpolation and /o' do + /#{/./}/so.match("\303\251").to_a.should == ["\303"] + end + + it 'supports /u (UTF8 encoding)' do + /./u.match("\303\251").to_a.should == ["\303\251"] + end - it 'supports /u (UTF8 encoding) with interpolation' do - /#{/./}/u.match("\303\251").to_a.should == ["\303\251"] - end + it 'supports /u (UTF8 encoding) with interpolation' do + /#{/./}/u.match("\303\251").to_a.should == ["\303\251"] + end - it 'supports /u (UTF8 encoding) with interpolation and /o' do - /#{/./}/uo.match("\303\251").to_a.should == ["\303\251"] - end - - it 'selects last of multiple encoding specifiers' do - /foo/ensuensuens.should == /foo/s - end + it 'supports /u (UTF8 encoding) with interpolation and /o' do + /#{/./}/uo.match("\303\251").to_a.should == ["\303\251"] end + + it 'selects last of multiple encoding specifiers' do + /foo/ensuensuens.should == /foo/s + end end ruby_version_is "1.9" do