mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
14 lines
457 B
Nim
14 lines
457 B
Nim
discard """
|
|
errormsg: "cannot open file: pkgA/module"
|
|
"""
|
|
|
|
# see nims file; comment out `switch("noNimblePath")` there and there would be no error
|
|
|
|
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"
|