lang: parser: Add new tests for deeper modules
You can have a module that's nested two deep or more.
This commit is contained in:
@@ -2487,6 +2487,22 @@ func TestImportParsing0(t *testing.T) {
|
|||||||
isLocal: true,
|
isLocal: true,
|
||||||
path: "foo/",
|
path: "foo/",
|
||||||
})
|
})
|
||||||
|
testCases = append(testCases, test{
|
||||||
|
name: "foo/bar/",
|
||||||
|
alias: "bar",
|
||||||
|
isSystem: false,
|
||||||
|
isLocal: true,
|
||||||
|
isFile: false,
|
||||||
|
path: "foo/bar/",
|
||||||
|
})
|
||||||
|
testCases = append(testCases, test{
|
||||||
|
name: "foo/bar/baz/",
|
||||||
|
alias: "baz",
|
||||||
|
isSystem: false,
|
||||||
|
isLocal: true,
|
||||||
|
isFile: false,
|
||||||
|
path: "foo/bar/baz/",
|
||||||
|
})
|
||||||
testCases = append(testCases, test{
|
testCases = append(testCases, test{
|
||||||
// import foo.mcl # import a file next to me
|
// import foo.mcl # import a file next to me
|
||||||
name: "foo.mcl",
|
name: "foo.mcl",
|
||||||
|
|||||||
Reference in New Issue
Block a user