diff options
author | Håvard Pettersen <havardpe@oath.com> | 2021-09-22 11:14:10 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2021-09-22 12:10:30 +0000 |
commit | 2293c5de7dfdf0adf738eea13adddaa8ef5fab27 (patch) | |
tree | 96420b5f98d53eb0f336cbd0e21ae7da8b5027ad /eval/src/tests/eval | |
parent | 55a5df7e0c64a8fcfa8e69d7a85111a7f18c48c1 (diff) |
added new 'hamming' function
Diffstat (limited to 'eval/src/tests/eval')
-rw-r--r-- | eval/src/tests/eval/inline_operation/inline_operation_test.cpp | 1 | ||||
-rw-r--r-- | eval/src/tests/eval/node_tools/node_tools_test.cpp | 1 | ||||
-rw-r--r-- | eval/src/tests/eval/node_types/node_types_test.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/eval/src/tests/eval/inline_operation/inline_operation_test.cpp b/eval/src/tests/eval/inline_operation/inline_operation_test.cpp index ae5f503b680..8e765708574 100644 --- a/eval/src/tests/eval/inline_operation/inline_operation_test.cpp +++ b/eval/src/tests/eval/inline_operation/inline_operation_test.cpp @@ -116,6 +116,7 @@ TEST(InlineOperationTest, op2_lambdas_are_recognized) { EXPECT_EQ(as_op2("min(a,b)"), &Min::f); EXPECT_EQ(as_op2("max(a,b)"), &Max::f); EXPECT_EQ(as_op2("bit(a,b)"), &Bit::f); + EXPECT_EQ(as_op2("hamming(a,b)"), &Hamming::f); } TEST(InlineOperationTest, op2_lambdas_are_recognized_with_different_parameter_names) { diff --git a/eval/src/tests/eval/node_tools/node_tools_test.cpp b/eval/src/tests/eval/node_tools/node_tools_test.cpp index e8296c01d73..b95ea2d4b14 100644 --- a/eval/src/tests/eval/node_tools/node_tools_test.cpp +++ b/eval/src/tests/eval/node_tools/node_tools_test.cpp @@ -101,6 +101,7 @@ TEST("require that call node types can be copied") { TEST_DO(verify_copy("elu(a)")); TEST_DO(verify_copy("erf(a)")); TEST_DO(verify_copy("bit(a,b)")); + TEST_DO(verify_copy("hamming(a,b)")); } TEST("require that tensor node types can NOT be copied (yet)") { diff --git a/eval/src/tests/eval/node_types/node_types_test.cpp b/eval/src/tests/eval/node_types/node_types_test.cpp index b2373f0d8f5..5b860f0e1b3 100644 --- a/eval/src/tests/eval/node_types/node_types_test.cpp +++ b/eval/src/tests/eval/node_types/node_types_test.cpp @@ -219,6 +219,7 @@ TEST("require that various operations resolve appropriate type") { TEST_DO(verify_op1("elu(%s)")); // Elu TEST_DO(verify_op1("erf(%s)")); // Erf TEST_DO(verify_op2("bit(%s,%s)")); // Bit + TEST_DO(verify_op2("hamming(%s,%s)")); // Hamming } TEST("require that map resolves correct type") { |