File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
lib/elixir/test/elixir/calendar Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,10 @@ defmodule DurationTest do
237
237
assert Duration . from_iso8601 ( "P4Y2W3Y" ) == { :error , :invalid_date_component }
238
238
assert Duration . from_iso8601 ( "P5HT4MT3S" ) == { :error , :invalid_date_component }
239
239
assert Duration . from_iso8601 ( "P5H3HT4M" ) == { :error , :invalid_date_component }
240
+ assert Duration . from_iso8601 ( "P0.5Y" ) == { :error , :invalid_date_component }
240
241
assert Duration . from_iso8601 ( "PT1D" ) == { :error , :invalid_time_component }
241
242
assert Duration . from_iso8601 ( "PT.6S" ) == { :error , :invalid_time_component }
243
+ assert Duration . from_iso8601 ( "PT0.5H" ) == { :error , :invalid_time_component }
242
244
assert Duration . from_iso8601 ( "invalid" ) == { :error , :invalid_duration }
243
245
end
244
246
You can’t perform that action at this time.
0 commit comments