Skip to content

Commit

Permalink
tests: Global import test
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Oct 29, 2024
1 parent cdd09ae commit 4b9caf4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ int main(int argc, char* argv[]) {
}

flamingo_register_external_fn_cb(&flamingo, external_fn_cb, NULL);
flamingo_add_import_path(&flamingo, "tests/import_path");

// run program

Expand Down
3 changes: 3 additions & 0 deletions tests/import_global.fl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import importable_anywhere

assert super_secret_value == 69
1 change: 1 addition & 0 deletions tests/import_path/importable_anywhere.fl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let super_secret_value = 69

0 comments on commit 4b9caf4

Please sign in to comment.