diff options
author | genotrance <dev@genotrance.com> | 2019-11-29 03:18:44 -0600 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-11-29 10:18:44 +0100 |
commit | 49db2a08ba78a5964067c5107d3de232c120daa4 (patch) | |
tree | a8a1698180b0bb99ee2ec6c2c98a335fa354bde9 /tests/nimble/tnimblepathdollarfail.nim | |
parent | 9ea55eccbbc61c6e7429c094b6ced41ce5535aeb (diff) | |
download | Nim-49db2a08ba78a5964067c5107d3de232c120daa4.tar.gz |
Fixes #12767 (#12768)
Diffstat (limited to 'tests/nimble/tnimblepathdollarfail.nim')
-rw-r--r-- | tests/nimble/tnimblepathdollarfail.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/nimble/tnimblepathdollarfail.nim b/tests/nimble/tnimblepathdollarfail.nim new file mode 100644 index 000000000..0b9b04eb4 --- /dev/null +++ b/tests/nimble/tnimblepathdollarfail.nim @@ -0,0 +1,10 @@ +discard """ + errmsg: "cannot open file: pkgA/module" +""" +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" |