-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fileValueGenerator parameter to gumshoe when using struct mode, w…
…hich is a function that takes the directory, file, extension, and index for the file and returns the value that should be set on the struct for that file Add example of fileValueGenerator to test object Add draw event to test object directing user to check the output log for the test case output
- Loading branch information
Showing
4 changed files
with
24 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
show_debug_message("struct version:"); | ||
show_debug_message(gumshoe("", "txt", true)); | ||
show_debug_message("array version:"); | ||
show_debug_message(gumshoe("", "txt", false)); | ||
show_debug_message("struct version:"); | ||
show_debug_message(gumshoe("", "txt", true)); | ||
show_debug_message("struct version with value generator:"); | ||
show_debug_message(gumshoe("", "txt", true, , function(directory, file, extension, index) { | ||
return directory + file; // the full path to the file | ||
})); | ||
show_debug_message("end."); |
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,3 @@ | ||
/// @description | ||
|
||
draw_text(10, 10, "See output log for test cases."); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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