Skip to content

Commit

Permalink
Document different decimal handling
Browse files Browse the repository at this point in the history
This is related to #17
  • Loading branch information
wallymathieu authored and gusty committed Sep 26, 2018
1 parent ac74a87 commit 4f3b4a0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Tests/Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,16 @@ let tests = [
Assert.JSON("2", 2)
}

test "decimal" {
#if FSHARPDATA
let actual : int ParseResult = parseJson "2.1"
Assert.Equal("decimal", Failure (), Result.mapError (fun _-> ()) actual)
#else
let actual : int ParseResult = parseJson "2.1"
Assert.Equal("decimal", Success 2, actual)
#endif
}

test "tuple 2" {
let expected =
"[1,2]"
Expand Down

0 comments on commit 4f3b4a0

Please sign in to comment.