mirror of
https://github.com/NorfairKing/autodocodec.git
synced 2024-11-30 03:22:52 +03:00
more error message regression tests
This commit is contained in:
parent
ccd5a05ef7
commit
ca78d92a3b
@ -71,7 +71,9 @@ spec = do
|
||||
aesonCodecSpec @Fruit
|
||||
aesonCodecSpec @Example
|
||||
aesonCodecErrorSpec @Example "example-error-bool-number" "{\"text\": \"hello\", \"bool\": 5}"
|
||||
aesonCodecErrorSpec @Example "example-error-fruit-number" "{\"text\": \"hello\", \"bool\": true, \"maybe\": null, \"fruit\": 5}"
|
||||
aesonCodecSpec @Recursive
|
||||
aesonCodecErrorSpec @Recursive "recursive-error-recurse-string" "{\"recurse\": {\"recurse\": {\"recurse\": \"hello\"}}}"
|
||||
aesonCodecSpec @Via
|
||||
aesonCodecSpec @VeryComment
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
Error in $: parsing Text failed, expected String, but encountered Number
|
@ -0,0 +1 @@
|
||||
Error in $: parsing Recurse failed, expected Object, but encountered String
|
Loading…
Reference in New Issue
Block a user