Project

General

Profile

Bug #5906 » 0001-test-csv-test_data_converters.rb-test_builtin_date_time_converter_with_stamp.patch

zzak (zzak _), 01/20/2012 03:09 AM

View differences:

test/csv/test_data_converters.rb
assert_instance_of(String, CSV::Converters[:date_time]["junk"])
end
def test_builtin_date_time_converter_with_stamp
str = "10-10-2010,10.33"
assert_equal(
[Date.strptime(str.split(',').first, '%d-%m-%Y'), "10.33"],
CSV.new(str,{:converters=>:date_time}).first
)
end
def test_convert_with_builtin_integer
# setup parser...
assert(@parser.respond_to?(:convert))
(2-2/2)