Bug #5906 » 0001-test-csv-test_data_converters.rb-test_builtin_date_time_converter_with_stamp.patch
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))
|
- « Previous
- 1
- 2
- Next »