forked from nim-lang/Nim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7db8e3
commit 3cf73b6
Showing
4 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
switch("clearNimblePath") | ||
switch("nimblePath", "$projectdir/nimbleDir/simplePkgs") | ||
switch("path", "$nimblepath/pkgA-0.1.0") | ||
switch("path", "$nimblepath/pkgB-#head") | ||
switch("path", "$nimblepath/pkgC-#head") | ||
switch("noNimblePath") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
switch("noNimblePath") | ||
switch("nimblePath", "$projectdir/nimbleDir/simplePkgs") | ||
switch("path", "$nimblepath/pkgA-0.1.0") | ||
switch("path", "$nimblepath/pkgB-#head") | ||
switch("path", "$nimblepath/pkgC-#head") |