mirror of
https://github.com/status-im/nim-stew.git
synced 2025-02-18 06:56:50 +00:00
add void tests (#84)
This commit is contained in:
parent
e10da4a90e
commit
3c91b8694e
@ -279,4 +279,13 @@ discard cstringF("test")
|
|||||||
# Compare void
|
# Compare void
|
||||||
block:
|
block:
|
||||||
var a, b: Result[void, bool]
|
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…
x
Reference in New Issue
Block a user