Sha256: 35b6f7e36d722e5069fea03f8f071bd875fb7ae9c1ab077b9f8b3302b234eb6d
Contents?: true
Size: 355 Bytes
Versions: 27
Compression:
Stored size: 355 Bytes
Contents
describe "StringScanner#check" do before :each do @s = StringScanner.new("This is a test") end it "returns the value that scan would return, without advancing the scan pointer" do @s.check(/This/).should == "This" @s.matched.should == "This" @s.pos.should == 0 @s.check(/is/).should == nil @s.matched.should == nil end end
Version data entries
27 entries across 27 versions & 2 rubygems