mtrudel / machete

Literate test matchers for ExUnit
MIT License
56 stars 2 forks source link

Support ISO8601 without timezone #31

Closed axelson closed 7 months ago

axelson commented 7 months ago

Extends Machete.ISO8601DateTimeMatcher to support ISO8601 timestamps without a timezone (such as those that NaiveDateTime.to_iso8601/1 creates.

Fixes https://github.com/mtrudel/machete/issues/30

After this PR this is the behavior we get:

NaiveDateTime.to_iso8601(NaiveDateTime.utc_now()) ~>>
  Machete.ISO8601DateTimeMatcher.iso8601_datetime(roughly: :now) == []
mtrudel commented 7 months ago

Looks great! Thanks Jason!

mtrudel commented 7 months ago

Published as 0.3.1

axelson commented 7 months ago

Awesome, thanks!