Skip to content

Commit

Permalink
Merge pull request #21 from michaeljones/iso-date-failure
Browse files Browse the repository at this point in the history
Add failing test with iso8601 date format
  • Loading branch information
massivefermion committed May 10, 2024
2 parents 8f5d8bd + 1e01d5e commit 3d12495
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/birl_test.gleam
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import birl
import birl/duration
import gleam/order
import gleam/result
import gleeunit
import gleeunit/should
import birl
import birl/duration

const iso_datetime = "1905-12-22T16:38:23.000+03:30"

Expand Down Expand Up @@ -185,3 +186,10 @@ pub fn weird_value8_test() {
|> birl.to_naive
|> should.equal("2019-03-26T14:00:00.020")
}

pub fn weird_value9_test() {
"2019-03-26"
|> birl.parse
|> result.map(birl.get_day)
|> should.equal(Ok(birl.Day(2019, 3, 26)))
}

0 comments on commit 3d12495

Please sign in to comment.