Skip to content

Commit

Permalink
Interaction and API tests for power tools
Browse files Browse the repository at this point in the history
Add some tests for charging and using tools

Fix tool spec, mod loading was updated

Tests using air as default node
  • Loading branch information
S-S-X committed Jun 9, 2022
1 parent ab3a6c8 commit be5b7cf
Show file tree
Hide file tree
Showing 4 changed files with 457 additions and 0 deletions.
1 change: 1 addition & 0 deletions technic/spec/hv_network_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe("HV machine network", function()
mineunit:mods_loaded()
-- Tell mods that 1 minute passed already to execute all weird minetest.after hacks.
mineunit:execute_globalstep(60)
world.set_default_node("air")

local machines = {
"technic:hv_generator",
Expand Down
1 change: 1 addition & 0 deletions technic/spec/lv_network_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe("LV machine network", function()
mineunit:mods_loaded()
-- Tell mods that 1 minute passed already to execute all weird minetest.after hacks.
mineunit:execute_globalstep(60)
world.set_default_node("air")

local machines = {
"technic:lv_generator",
Expand Down
2 changes: 2 additions & 0 deletions technic/spec/network_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ sourcefile("machines/HV/generator")

describe("Power network helper", function()

world.set_default_node("air")

world.layout({
{{x=100,y=100,z=100}, "technic:lv_cable"},
{{x=101,y=100,z=100}, "technic:lv_cable"},
Expand Down
Loading

0 comments on commit be5b7cf

Please sign in to comment.