diff options
author | genotrance <dev@genotrance.com> | 2019-11-28 06:58:38 -0600 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-11-28 13:58:38 +0100 |
commit | 010067f3cc43f24991731d644d1abc70a07d5f38 (patch) | |
tree | 4ad96386bb6a87191282fba542a41cfd84f869da /tests | |
parent | abe07eb75d31189e8afea90c3c8608574f1a0751 (diff) | |
download | Nim-010067f3cc43f24991731d644d1abc70a07d5f38.tar.gz |
Substitute $nimbleDir in --path flags (#12750)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/nimble/tnimblepathdollar.nim | 7 | ||||
-rw-r--r-- | tests/nimble/tnimblepathdollar.nims | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/nimble/tnimblepathdollar.nim b/tests/nimble/tnimblepathdollar.nim new file mode 100644 index 000000000..994d975bb --- /dev/null +++ b/tests/nimble/tnimblepathdollar.nim @@ -0,0 +1,7 @@ +import pkgA/module as A +import pkgB/module as B +import pkgC/module as C + +doAssert pkgATest() == 1, "Simple pkgA-0.1.0 wasn't added to path correctly." +doAssert pkgBTest() == 0xDEADBEEF, "pkgB-#head wasn't picked over pkgB-0.1.0" +doAssert pkgCTest() == 0xDEADBEEF, "pkgC-#head wasn't picked over pkgC-#aa11" diff --git a/tests/nimble/tnimblepathdollar.nims b/tests/nimble/tnimblepathdollar.nims new file mode 100644 index 000000000..ff45366a8 --- /dev/null +++ b/tests/nimble/tnimblepathdollar.nims @@ -0,0 +1,5 @@ +switch("nimblePath", "$projectdir/nimbleDir/simplePkgs") +switch("path", "$nimblepath/pkgA-0.1.0") +switch("path", "$nimblepath/pkgB-#head") +switch("path", "$nimblepath/pkgC-#head") +switch("noNimblePath") |