add void tests (#84)
This commit is contained in:
parent
e10da4a90e
commit
3c91b8694e
|
@ -279,4 +279,13 @@ discard cstringF("test")
|
|||
# Compare void
|
||||
block:
|
||||
var a, b: Result[void, bool]
|
||||
discard a == b
|
||||
doAssert a == b
|
||||
|
||||
a.ok()
|
||||
|
||||
doAssert not (a == b)
|
||||
doAssert not (b == a)
|
||||
|
||||
b.ok()
|
||||
|
||||
doAssert a == b
|
||||
|
|
Loading…
Reference in New Issue