mirror of
https://github.com/logos-storage/questionable.git
synced 2026-01-02 13:53:11 +00:00
Update readme test
This commit is contained in:
parent
8a5ff10244
commit
0e166a6e81
@ -130,3 +130,8 @@ suite "result":
|
||||
check x == 42.success
|
||||
let y = parseInt("XX").catch
|
||||
check y.isErr
|
||||
|
||||
# Conversion to Option
|
||||
|
||||
let converted = works().toOption
|
||||
check converted == @[1, 1, 2, 2, 2].some
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user