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:
James Shubin
2023-10-03 16:36:37 -04:00
parent ab7eb0a293
commit a686c5f9aa

View File

@@ -2487,6 +2487,22 @@ func TestImportParsing0(t *testing.T) {
isLocal: true,
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{
// import foo.mcl # import a file next to me
name: "foo.mcl",