summaryrefslogtreecommitdiff
path: root/test/core/script
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/script')
-rw-r--r--test/core/script/Function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/script/Function.cpp b/test/core/script/Function.cpp
index cd6bd84..39dd9ce 100644
--- a/test/core/script/Function.cpp
+++ b/test/core/script/Function.cpp
@@ -28,7 +28,7 @@ TEST(HostFunction, callDirect)
int v = 0;
HostFunction f{[](const std::vector<Variant> &args, void *data) {
*(static_cast<int*>(data)) = args[0].getIntegerValue();
- return VarNull;
+ return Variant::Null;
}, {Argument{VariantType::integer}}, &v};
ASSERT_EQ(VariantType::null, f.call({{(int64_t)42}}).getType());
ASSERT_EQ(42, v);