blob: 3cff5c010c4c7a5177ffda411adbf6ad8929a086 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require_relative '../../spec_helper'
require 'strscan'
describe "StringScanner#terminate" do
it "set the scan pointer to the end of the string and clear matching data." do
s = StringScanner.new('This is a test')
s.terminate
s.should_not.bol?
s.should.eos?
end
end
|