Skip to content

Commit

Permalink
TokenParser float bugfix
Browse files Browse the repository at this point in the history
Issues #73 #115
  • Loading branch information
jamesdbrock committed Jan 13, 2022
1 parent a0ab5bf commit 4b9d488
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,13 @@ tokenParserFloatTest = do
-- fail on nonfloat
parseErrorTestPosition testTokenParser.float "100.e1" $ mkPos 5

-- I think ideally the float parser should round-trip with show.
-- test from issue #73
parseTest "0.7531531167929774" 0.7531531167929774 testTokenParser.float

-- test from issue #115
parseTest "-6.0" (-6.0) testTokenParser.float

-- TODO
tokenParserNaturalOrFloatTest :: TestM
tokenParserNaturalOrFloatTest = do
Expand Down

0 comments on commit 4b9d488

Please sign in to comment.