describe :extract_range_matched, shared: true do
it do
cls = Class.new(String)
sub = cls.new()
s = StringScanner.new(sub)
s.scan()
ch = s.send(@method)
ch.should_not be_kind_of(cls)
ch.should be_an_instance_of(String)
end
it do
str =
str.taint
s = StringScanner.new(str)
s.scan()
s.send(@method).tainted?.should be_true
end
end