Skip failing examples related with d81b0588bb

This commit is contained in:
Hiroshi SHIBATA 2024-09-17 15:44:18 +09:00
parent c0116860ba
commit 95f08f2b7f
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2
5 changed files with 30 additions and 20 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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