datetime handling for gleam
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #21 from michaeljones/iso-date-failure

Add failing test with iso8601 date format

authored by

shayan javani and committed by
GitHub
3d12495b 8f5d8bd0

+10 -2
+10 -2
test/birl_test.gleam
··· 1 + import birl 2 + import birl/duration 1 3 import gleam/order 4 + import gleam/result 2 5 import gleeunit 3 6 import gleeunit/should 4 - import birl 5 - import birl/duration 6 7 7 8 const iso_datetime = "1905-12-22T16:38:23.000+03:30" 8 9 ··· 185 186 |> birl.to_naive 186 187 |> should.equal("2019-03-26T14:00:00.020") 187 188 } 189 + 190 + pub fn weird_value9_test() { 191 + "2019-03-26" 192 + |> birl.parse 193 + |> result.map(birl.get_day) 194 + |> should.equal(Ok(birl.Day(2019, 3, 26))) 195 + }