mirror of
https://github.com/logos-storage/questionable.git
synced 2026-01-02 13:53:11 +00:00
Support renamed 'results' library
This commit is contained in:
parent
f957dd59d6
commit
b18444a6d0
@ -19,7 +19,7 @@ If you want to make use of Result types, then you also have to add either the
|
||||
[result][2] package, or the [stew][4] package:
|
||||
|
||||
```nim
|
||||
requires "result" # either this
|
||||
requires "results" # either this
|
||||
requires "stew" # or this
|
||||
```
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ description = "Elegant optional types"
|
||||
license = "MIT"
|
||||
|
||||
task test, "Runs the test suite":
|
||||
for module in ["options", "result", "stew"]:
|
||||
for module in ["options", "results", "stew"]:
|
||||
withDir "testmodules/" & module:
|
||||
delEnv "NIMBLE_DIR" # use nimbledeps dir
|
||||
exec "nimble install -d -y"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
template tryImport(module) = import module
|
||||
|
||||
when compiles tryImport pkg/result:
|
||||
import pkg/result/../results
|
||||
when compiles tryImport pkg/results:
|
||||
import pkg/results
|
||||
else:
|
||||
import pkg/stew/results
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ author = "Questionable Authors"
|
||||
description = "Questionable tests for pkg/result"
|
||||
license = "MIT"
|
||||
|
||||
requires "result"
|
||||
requires "results"
|
||||
|
||||
task test, "Runs the test suite":
|
||||
exec "nim c -f -r --skipParentCfg test.nim"
|
||||
@ -1 +1 @@
|
||||
include ../result/test
|
||||
include ../results/test
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user