Skip to content

Commit

Permalink
anti-null test
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Aug 13, 2022
1 parent 9dde7d1 commit 9913b3f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,15 @@ object CompilationTests extends SimpleIOSuite with Checkers {
}(Schema.document) == Ior.right(Document.nullDoc)
)
}

pureTest("null doesn't work as anything like a string") {
assert(
compile {
WithSource.liftId(NullLiteral[WithSource]())
}(Schema.string).isLeft
)
}

pureTest("blob") {
assert(
compile {
Expand Down

0 comments on commit 9913b3f

Please sign in to comment.