-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-write lua tests to use common integration test framework
- Loading branch information
Showing
30 changed files
with
382 additions
and
345 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
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
11 changes: 0 additions & 11 deletions
11
crates/languages/bevy_mod_scripting_lua/tests/data/access/aliasing_global_access.lua
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
crates/languages/bevy_mod_scripting_lua/tests/data/access/aliasing_write.lua
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...languages/bevy_mod_scripting_lua/tests/data/get_component/component_no_component_data.lua
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
2 changes: 1 addition & 1 deletion
2
...nguages/bevy_mod_scripting_lua/tests/data/get_component/component_with_component_data.lua
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
2 changes: 1 addition & 1 deletion
2
...languages/bevy_mod_scripting_lua/tests/data/get_resource/missing_resource_returns_nil.lua
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,2 +1,2 @@ | ||
local type = _get_mock_type() | ||
local type = world._get_mock_type() | ||
assert(world.get_resource(type) == nil, "Resource should not exist") |
2 changes: 1 addition & 1 deletion
2
.../bevy_mod_scripting_lua/tests/data/has_component/empty_entity_mock_component_is_false.lua
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,4 +1,4 @@ | ||
local entity = world.spawn() | ||
local type = _get_mock_type() | ||
local type = world._get_mock_type() | ||
|
||
assert(world.has_component(entity, type) == false, "Entity should not have component") |
2 changes: 1 addition & 1 deletion
2
crates/languages/bevy_mod_scripting_lua/tests/data/has_component/no_component_data.lua
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,3 +1,3 @@ | ||
local entity = _get_entity_with_test_component("CompWithDefault") | ||
local entity = world._get_entity_with_test_component("CompWithDefault") | ||
local component = world.get_type_by_name("CompWithDefault") | ||
assert(world.has_component(entity, component) == true, "Component was not found") |
2 changes: 1 addition & 1 deletion
2
crates/languages/bevy_mod_scripting_lua/tests/data/has_component/with_component_data.lua
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,3 +1,3 @@ | ||
local entity = _get_entity_with_test_component("TestComponent") | ||
local entity = world._get_entity_with_test_component("TestComponent") | ||
local component = world.get_type_by_name("TestComponent") | ||
assert(world.has_component(entity, component) == true, "Component was not found") |
2 changes: 1 addition & 1 deletion
2
...evy_mod_scripting_lua/tests/data/has_resource/missing_resource_mock_resource_is_false.lua
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,2 +1,2 @@ | ||
local type = _get_mock_type() | ||
local type = world._get_mock_type() | ||
assert(world.has_resource(type) == false, "Resource should not exist") |
2 changes: 1 addition & 1 deletion
2
...languages/bevy_mod_scripting_lua/tests/data/query/query_returns_all_entities_matching.lua
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
2 changes: 1 addition & 1 deletion
2
...languages/bevy_mod_scripting_lua/tests/data/remove_component/no_component_data_errors.lua
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
2 changes: 1 addition & 1 deletion
2
...y_mod_scripting_lua/tests/data/remove_component/with_component_data_removes_component.lua
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,5 @@ | ||
|
||
local entity = _get_entity_with_test_component("TestComponent") | ||
local entity = world._get_entity_with_test_component("TestComponent") | ||
local component = world.get_type_by_name("TestComponent") | ||
world.remove_component(entity, component) | ||
assert(world.has_component(entity, component) == false, "Component was not removed") |
2 changes: 1 addition & 1 deletion
2
...s/languages/bevy_mod_scripting_lua/tests/data/remove_resource/no_resource_data_errors.lua
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
Oops, something went wrong.