Support renamed 'results' library

This commit is contained in:
Mark Spanbroek 2023-06-05 17:00:09 +02:00 committed by markspanbroek
parent f957dd59d6
commit b18444a6d0
8 changed files with 6 additions and 6 deletions

View File

@ -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: [result][2] package, or the [stew][4] package:
```nim ```nim
requires "result" # either this requires "results" # either this
requires "stew" # or this requires "stew" # or this
``` ```

View File

@ -4,7 +4,7 @@ description = "Elegant optional types"
license = "MIT" license = "MIT"
task test, "Runs the test suite": task test, "Runs the test suite":
for module in ["options", "result", "stew"]: for module in ["options", "results", "stew"]:
withDir "testmodules/" & module: withDir "testmodules/" & module:
delEnv "NIMBLE_DIR" # use nimbledeps dir delEnv "NIMBLE_DIR" # use nimbledeps dir
exec "nimble install -d -y" exec "nimble install -d -y"

View File

@ -1,7 +1,7 @@
template tryImport(module) = import module template tryImport(module) = import module
when compiles tryImport pkg/result: when compiles tryImport pkg/results:
import pkg/result/../results import pkg/results
else: else:
import pkg/stew/results import pkg/stew/results

View File

@ -3,7 +3,7 @@ author = "Questionable Authors"
description = "Questionable tests for pkg/result" description = "Questionable tests for pkg/result"
license = "MIT" license = "MIT"
requires "result" requires "results"
task test, "Runs the test suite": task test, "Runs the test suite":
exec "nim c -f -r --skipParentCfg test.nim" exec "nim c -f -r --skipParentCfg test.nim"

View File

@ -1 +1 @@
include ../result/test include ../results/test