Skip to content
Permalink
Browse files

Add tests for parsing ISO 8601 strings with negative timezone offsets.

  • Loading branch information...
jonathanknowles committed Jul 12, 2019
1 parent 904d98e commit 4a6152bbb04ca52271b723ef23b65521c2655945
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/cli/test/unit/Cardano/CLISpec.hs
@@ -74,6 +74,10 @@ spec = do
canDecodeValidIso8601Time "2008-09-15T15:53:00+08:00"
canDecodeValidIso8601Time "2008-09-15T15:53:00.1+08:00"
canDecodeValidIso8601Time "2008-09-15T15:53:00.12+08:00"
describe "UTC-8 timezone (manually specified)" $ do
canDecodeValidIso8601Time "2008-09-15T15:53:00-08:00"
canDecodeValidIso8601Time "2008-09-15T15:53:00.1-08:00"
canDecodeValidIso8601Time "2008-09-15T15:53:00.12-08:00"

describe "Cannot decode invalid ISO 8601 strings" $ do
describe "Strings that are not time values" $ do

0 comments on commit 4a6152b

Please sign in to comment.
You can’t perform that action at this time.