Sha256: 563ef0a3ac291d49f8239d68e623f5ac253adf272e66032d42872b0ca0de08be

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

require_relative "test_helper"

class TestRandomData < Test::Unit::TestCase


    def setup
      # to make random numbers deterministic for testing purposes
      srand(100)
    end

    def test_passenger_birthdate_parsed
      %w{adult child infant}.each { |type|
        puts type
        assert Random.passenger_birthdate_parsed(type)
      }
    end

    def test_passenger_birthdate
      %w{adult child infant}.each { |type|
        p type
        assert Random.passenger_birthdate(type)
      }
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
random_data_despegar-2.1 test/test_dates.rb