Skip to content

Commit f94b54a

Browse files
committed
spec/: Add test for inject_extensions() and rename tests
1 parent 748917a commit f94b54a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ print("test")
2121
assert(compiler.load_file("spec/in/basic.fuse"), "unable to load file")()
2222
_G['print'] = old_print
2323
end)
24+
it("can inject FusionScript extensions to the global environment", function()
25+
-- empty test just to run without errors
26+
compiler.inject_extensions()
27+
end)
2428
it("can load a searcher into the module loading system", function()
2529
assert.same(true, compiler.inject_loader())
2630
local len = #(package.loaders or package.searchers) -- luacheck: ignore 143

spec/in/literals.fuse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using {itr, range};
1+
using {itr};
22

33
-- numbers --
44

0 commit comments

Comments
 (0)