Skip to content

Commit

Permalink
Remove debug test relic
Browse files Browse the repository at this point in the history
  • Loading branch information
MangelMaxime committed Jan 31, 2024
1 parent e2db981 commit 606f885
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/Thoth.Json.Tests.Newtonsoft/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,5 @@ let main args =
[
Decoders.tests runner
Encoders.tests runner
runner.testCase
"field output an error explaining why the value is considered invalid"
<| fun _ ->
let json = """{ "name": null, "age": 25 }"""

let expected =
Error(
"""
Error at: `$.name`
Expecting an int but instead got: null
"""
.Trim()
)

let actual =
runner.Decode.fromString
(Decode.field "name" Decode.int)
json

runner.equal expected actual
]
|> runTestsWithArgs defaultConfig args

0 comments on commit 606f885

Please sign in to comment.