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