summaryrefslogtreecommitdiff
path: root/test/core/script/Function.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-10-24 22:35:51 +0000
committerandreas <andreas@daaaf23c-2e50-4459-9457-1e69db5a47bf>2014-10-24 22:35:51 +0000
commit16d900d3e8341663e53cb1f4c719578e12df829d (patch)
tree0f643861f1f773f6609fcc37c74834a083289015 /test/core/script/Function.cpp
parent7e51bf3804e50ea063fcc97b2682a32a8505902f (diff)
added some comments to the Variant class (not done yet), moved VarNull to Variant::Null
git-svn-id: file:///var/local/svn/basicwriter@76 daaaf23c-2e50-4459-9457-1e69db5a47bf
Diffstat (limited to 'test/core/script/Function.cpp')
-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);