Sha256: f91215c9144a212ce3e7584296133dd80e6be34906f810091e64c49bde8018ed
Contents?: true
Size: 510 Bytes
Versions: 3
Compression:
Stored size: 510 Bytes
Contents
require 'strscan' describe "StringScanner#inspect" do before :each do @s = StringScanner.new("This is a test") end it "returns a String object" do @s.inspect.should be_kind_of(String) end it "returns a string that represents the StringScanner object" do @s.inspect.should == "#<StringScanner 0/14 @ \"This ...\">" @s.scan_until /is/ @s.inspect.should == "#<StringScanner 4/14 \"This\" @ \" is a...\">" @s.terminate @s.inspect.should == "#<StringScanner fin>" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-strscan-1.0.1 | spec/inspect_spec.rb |
rubysl-strscan-1.0.0 | spec/inspect_spec.rb |
rubysl-strscan-2.0.0 | spec/inspect_spec.rb |