Sha256: fdf065de08e883f95bac93470c7093a2eb570b1527414ab210fe02be3ea23ea9

Contents?: true

Size: 408 Bytes

Versions: 2

Compression:

Stored size: 408 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

2 entries across 2 versions & 1 rubygems

Version Path
music-transcription-0.11.0 spec/parsing/positive_integer_spec.rb
music-transcription-0.10.0 spec/parsing/positive_integer_spec.rb