Skip failing examples related with d81b0588bb
This commit is contained in:
parent
c0116860ba
commit
95f08f2b7f
@ -13,9 +13,11 @@ describe "StringScanner#check_until" do
|
||||
@s.check_until(/test/).should == "This is a test"
|
||||
end
|
||||
|
||||
it "raises TypeError if given a String" do
|
||||
-> {
|
||||
@s.check_until('T')
|
||||
}.should raise_error(TypeError, 'wrong argument type String (expected Regexp)')
|
||||
ruby_version_is ""..."3.4" do
|
||||
it "raises TypeError if given a String" do
|
||||
-> {
|
||||
@s.check_until('T')
|
||||
}.should raise_error(TypeError, 'wrong argument type String (expected Regexp)')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -22,9 +22,11 @@ describe "StringScanner#exist?" do
|
||||
@s.exist?(/i/).should == nil
|
||||
end
|
||||
|
||||
it "raises TypeError if given a String" do
|
||||
-> {
|
||||
@s.exist?('T')
|
||||
}.should raise_error(TypeError, 'wrong argument type String (expected Regexp)')
|
||||
ruby_version_is ""..."3.4" do
|
||||
it "raises TypeError if given a String" do
|
||||
-> {
|
||||
@s.exist?('T')
|
||||
}.should raise_error(TypeError, 'wrong argument type String (expected Regexp)')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -21,9 +21,11 @@ describe "StringScanner#scan_until" do
|
||||
@s.scan_until(/^h/).should == "h"
|
||||
end
|
||||
|
||||
it "raises TypeError if given a String" do
|
||||
-> {
|
||||
@s.scan_until('T')
|
||||
}.should raise_error(TypeError, 'wrong argument type String (expected Regexp)')
|
||||
ruby_version_is ""..."3.4" do
|
||||
it "raises TypeError if given a String" do
|
||||
-> {
|
||||
@s.scan_until('T')
|
||||
}.should raise_error(TypeError, 'wrong argument type String (expected Regexp)')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -28,9 +28,11 @@ describe "StringScanner#search_full" do
|
||||
@s.pos.should == 4
|
||||
end
|
||||
|
||||
it "raises TypeError if given a String" do
|
||||
-> {
|
||||
@s.search_full('T', true, true)
|
||||
}.should raise_error(TypeError, 'wrong argument type String (expected Regexp)')
|
||||
ruby_version_is ""..."3.4" do
|
||||
it "raises TypeError if given a String" do
|
||||
-> {
|
||||
@s.search_full('T', true, true)
|
||||
}.should raise_error(TypeError, 'wrong argument type String (expected Regexp)')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -16,9 +16,11 @@ describe "StringScanner#skip_until" do
|
||||
@s.skip_until(/d+/).should == nil
|
||||
end
|
||||
|
||||
it "raises TypeError if given a String" do
|
||||
-> {
|
||||
@s.skip_until('T')
|
||||
}.should raise_error(TypeError, 'wrong argument type String (expected Regexp)')
|
||||
ruby_version_is ""..."3.4" do
|
||||
it "raises TypeError if given a String" do
|
||||
-> {
|
||||
@s.skip_until('T')
|
||||
}.should raise_error(TypeError, 'wrong argument type String (expected Regexp)')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user