Add utilities for type checking awesome MG functions

Reviewers: mtomic, msantl

Reviewed By: mtomic, msantl

Subscribers: buda, pullbot

Differential Revision: https://phabricator.memgraph.io/D2259
This commit is contained in:
Teon Banek 2019-08-12 16:00:04 +02:00
parent 34f80722c2
commit f7575eb112
2 changed files with 443 additions and 429 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1304,9 +1304,9 @@ TEST_F(FunctionTest, UniformSample) {
ASSERT_TRUE(
EvaluateFunction("UNIFORMSAMPLE", TypedValue(), TypedValue()).IsNull());
ASSERT_TRUE(EvaluateFunction("UNIFORMSAMPLE", TypedValue(), 1).IsNull());
ASSERT_THROW(
EvaluateFunction("UNIFORMSAMPLE", MakeTypedValueList(), TypedValue()),
QueryRuntimeException);
ASSERT_TRUE(
EvaluateFunction("UNIFORMSAMPLE", MakeTypedValueList(), TypedValue())
.IsNull());
ASSERT_TRUE(
EvaluateFunction("UNIFORMSAMPLE", MakeTypedValueList(), 1).IsNull());
ASSERT_THROW(