mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-24 04:46:05 +08:00
remove hacks no longer necessary to work around JNI locals stack overflow, since we now delete local refs
This commit is contained in:
@@ -450,10 +450,6 @@ it "doesn't match Unicode private-use characters with [[:xdigit:]]" do
|
||||
"\u{E001}".match(/[[:xdigit:]]/).should be_nil
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
describe "Regexp with character classes" do
|
||||
|
||||
it "matches Unicode lowercase characters with [[:word:]]" do
|
||||
"\u{FF41}".match(/[[:word:]]/).to_a.should == ["\u{FF41}"]
|
||||
"\u{1D484}".match(/[[:word:]]/).to_a.should == ["\u{1D484}"]
|
||||
|
||||
@@ -59,48 +59,36 @@ describe "Ruby character strings" do
|
||||
end
|
||||
|
||||
it "allow using non-alnum characters as string delimiters" do
|
||||
1.times do
|
||||
%(hey #{@ip}).should == "hey xxx"
|
||||
%[hey #{@ip}].should == "hey xxx"
|
||||
%{hey #{@ip}}.should == "hey xxx"
|
||||
%<hey #{@ip}>.should == "hey xxx"
|
||||
%!hey #{@ip}!.should == "hey xxx"
|
||||
end
|
||||
1.times do
|
||||
%@hey #{@ip}@.should == "hey xxx"
|
||||
%#hey hey#.should == "hey hey"
|
||||
%%hey #{@ip}%.should == "hey xxx"
|
||||
%^hey #{@ip}^.should == "hey xxx"
|
||||
%&hey #{@ip}&.should == "hey xxx"
|
||||
end
|
||||
1.times do
|
||||
%*hey #{@ip}*.should == "hey xxx"
|
||||
%-hey #{@ip}-.should == "hey xxx"
|
||||
%_hey #{@ip}_.should == "hey xxx"
|
||||
%=hey #{@ip}=.should == "hey xxx"
|
||||
%+hey #{@ip}+.should == "hey xxx"
|
||||
end
|
||||
1.times do
|
||||
%~hey #{@ip}~.should == "hey xxx"
|
||||
%:hey #{@ip}:.should == "hey xxx"
|
||||
%;hey #{@ip};.should == "hey xxx"
|
||||
%"hey #{@ip}".should == "hey xxx"
|
||||
%|hey #{@ip}|.should == "hey xxx"
|
||||
end
|
||||
1.times do
|
||||
%?hey #{@ip}?.should == "hey xxx"
|
||||
%/hey #{@ip}/.should == "hey xxx"
|
||||
%,hey #{@ip},.should == "hey xxx"
|
||||
%.hey #{@ip}..should == "hey xxx"
|
||||
end
|
||||
|
||||
1.times do
|
||||
# surprised? huh
|
||||
%'hey #{@ip}'.should == "hey xxx"
|
||||
%\hey #{@ip}\.should == "hey xxx"
|
||||
%`hey #{@ip}`.should == "hey xxx"
|
||||
%$hey #{@ip}$.should == "hey xxx"
|
||||
end
|
||||
end
|
||||
|
||||
it "using percent with 'q', stopping interpolation" do
|
||||
|
||||
Reference in New Issue
Block a user