diff options
author | Geir Storli <geirst@verizonmedia.com> | 2019-11-21 14:43:42 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2019-11-21 14:43:42 +0000 |
commit | 501107d62e213e9b32f9ce353a6c915b73873536 (patch) | |
tree | b9cdf1a163aeb13be3e54354920fd03a1ceea728 /searchlib/src/tests/attribute/searchable | |
parent | bab44959537f7f5ec98b852ca209bf86de332d6d (diff) |
Use TEST_DO.
Diffstat (limited to 'searchlib/src/tests/attribute/searchable')
-rw-r--r-- | searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp b/searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp index 92cb290c31f..571c2ce3431 100644 --- a/searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp +++ b/searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp @@ -313,13 +313,13 @@ TEST("empty blueprint is created when nearest neighbor term is invalid") TensorSpec sparse_x = TensorSpec("tensor(x{})").add({{"x", 0}}, 3); TensorSpec dense_y_2 = TensorSpec("tensor(y[2])").add({{"y", 0}}, 3).add({{"y", 1}}, 5); TensorSpec dense_x_3 = TensorSpec("tensor(x[3])").add({{"x", 0}}, 3).add({{"x", 1}}, 5).add({{"x", 2}}, 7); - expect_empty_blueprint(make_int_attribute(field)); // attribute is not a tensor - expect_empty_blueprint(make_tensor_attribute(field, "tensor(x{})")); // attribute is not a dense tensor - expect_empty_blueprint(make_tensor_attribute(field, "tensor(x[2],y[2])")); // tensor type is not of order 1 - expect_empty_blueprint(make_tensor_attribute(field, "tensor(x[2])")); // query tensor not found - expect_empty_blueprint(make_tensor_attribute(field, "tensor(x[2])"), sparse_x); // query tensor is not dense - expect_empty_blueprint(make_tensor_attribute(field, "tensor(x[2])"), dense_y_2); // tensor types are not equal - expect_empty_blueprint(make_tensor_attribute(field, "tensor(x[2])"), dense_x_3); // tensor types are not same size + TEST_DO(expect_empty_blueprint(make_int_attribute(field))); // attribute is not a tensor + TEST_DO(expect_empty_blueprint(make_tensor_attribute(field, "tensor(x{})"))); // attribute is not a dense tensor + TEST_DO(expect_empty_blueprint(make_tensor_attribute(field, "tensor(x[2],y[2])"))); // tensor type is not of order 1 + TEST_DO(expect_empty_blueprint(make_tensor_attribute(field, "tensor(x[2])"))); // query tensor not found + TEST_DO(expect_empty_blueprint(make_tensor_attribute(field, "tensor(x[2])"), sparse_x)); // query tensor is not dense + TEST_DO(expect_empty_blueprint(make_tensor_attribute(field, "tensor(x[2])"), dense_y_2)); // tensor types are not equal + TEST_DO(expect_empty_blueprint(make_tensor_attribute(field, "tensor(x[2])"), dense_x_3)); // tensor types are not same size } TEST_MAIN() { TEST_RUN_ALL(); } |