Sha256: 7226c96e0c7880249f4bbb86d4bf985e10b6d1b5798ab90f17259a2ae0be8f44
Contents?: true
Size: 411 Bytes
Versions: 6
Compression:
Stored size: 411 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Parsing::PositiveIntegerParser do parser = Parsing::PositiveIntegerParser.new ["1","50","05","502530"].each do |str| it "should parse '#{str}'" do parser.parse(str).should_not be nil end end ["0"].each do |str| it "should not parse '#{str}'" do parser.parse(str).should be nil end end end
Version data entries
6 entries across 6 versions & 1 rubygems