Skip to content

Commit

Permalink
Improve more FFI tests
Browse files Browse the repository at this point in the history
Fully parse the plugin when the function being tested depends on non-header records.
  • Loading branch information
Ortham committed Jun 25, 2024
1 parent 2a307ae commit a32eb45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ffi/tests/ffi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ void test_esp_plugin_count_override_records() {
auto return_code = esp_plugin_new(&plugin, ESP_GAME_SKYRIM, "../../testing-plugins/Skyrim/Data/Blank.esm");
assert(return_code == ESP_OK);

return_code = esp_plugin_parse(plugin, true);
return_code = esp_plugin_parse(plugin, false);
assert(return_code == ESP_OK);

size_t count;
Expand Down Expand Up @@ -301,7 +301,7 @@ void test_esp_plugin_is_valid_as_light_master() {
auto return_code = esp_plugin_new(&plugin, ESP_GAME_SKYRIMSE, "../../testing-plugins/SkyrimSE/Data/Blank.esm");
assert(return_code == ESP_OK);

return_code = esp_plugin_parse(plugin, true);
return_code = esp_plugin_parse(plugin, false);
assert(return_code == ESP_OK);

bool is_valid;
Expand Down

0 comments on commit a32eb45

Please sign in to comment.