-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add custom extension support for importing source file (#350)
* chore: add tests for custom extension * feat: cusom source extension #286 * fix: path to test directory * add getter + change setter name for file extension * add tests of source file extension validation * fix: add validation for file extension names * fix: property importExt -> importFileExt * fix: redundant check (no resetting) * fix: failing test wich did not follow the new spec * chore: add detailed description of the test * chore: fix doc comment to be descriptive * docs: add note about customizing the file extension
- Loading branch information
Showing
10 changed files
with
234 additions
and
20 deletions.
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
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
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,8 @@ | ||
export { | ||
fn: func(...args) { | ||
text := import("text") | ||
args = append(args, "cinco") | ||
|
||
return text.join(args, " ") | ||
} | ||
} |
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,7 @@ | ||
export { | ||
fn: func(a, b) { | ||
tres := import("../tres") | ||
|
||
return tres.fn(a, b, "dos") | ||
} | ||
} |
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,7 @@ | ||
export { | ||
fn: func(a, b, c, d) { | ||
cinco := import("../cinco/cinco") | ||
|
||
return cinco.fn(a, b, c, d, "quatro") | ||
} | ||
} |
Oops, something went wrong.