15 lines
340 B
C++
15 lines
340 B
C++
#ifdef TESTS_BUILD
|
|
#include <catch.hpp>
|
|
#include "../src/Script.hpp"
|
|
|
|
TEST_CASE( "Create script variable", "[integration]" ) {
|
|
Script* script = Script::Create("foo = true");
|
|
REQUIRE(!script->Diagnostics -> HasErrors());
|
|
auto variable = script->GetVariable("foo");
|
|
REQUIRE(variable == nullptr);
|
|
delete script;
|
|
}
|
|
|
|
|
|
#endif
|