refactor: consolidate engine architecture contracts
This commit is contained in:
1 parent
4e8deb1180
commit
a8b8e83128
677 files changed
+79854
-9670
No files matched your search
@@ -119,8 +119,7 @@ TEST_CASE("scriptModule.rejectsCyclesBeforeExecution") {
|
||||
try {
|
||||
runtime.compileSource("import { a } from \"mem:/a.nut\"\n", "game:/main.nut");
|
||||
} catch (const ScriptException& error) {
|
||||
rejected = std::string(error.what()).find("cyclic script import") != std::string::npos ||
|
||||
runtime.scriptModules().lastError().find("cyclic script import") != std::string::npos;
|
||||
rejected = std::string(error.what()).find("cyclic script import") != std::string::npos;
|
||||
}
|
||||
REQUIRE(rejected);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user