summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeir Storli <geirst@oath.com>2018-04-23 11:18:19 +0000
committerGeir Storli <geirst@oath.com>2018-04-23 11:18:19 +0000
commit5fae97bc7a64119aa07b03cd3ef15a4cefae64bc (patch)
tree8a4db03b82b3133324b7a25dfed9572fb083c5ba
parent506f66bda3b65f41496064307ba010bd9c353101 (diff)
Test that isImported() returns true.
-rw-r--r--searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp b/searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp
index b7b6eac94ed..1e24a784fd9 100644
--- a/searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp
+++ b/searchlib/src/tests/attribute/imported_attribute_vector/imported_attribute_vector_test.cpp
@@ -145,6 +145,10 @@ TEST_F("asTensorAttribute() returns nullptr", Fixture) {
EXPECT_TRUE(f.get_imported_attr()->asTensorAttribute() == nullptr);
}
+TEST_F("isImported() returns true", Fixture) {
+ EXPECT_TRUE(f.get_imported_attr()->isImported());
+}
+
TEST_F("Multi-valued integer attribute values can be retrieved via reference", Fixture) {
const std::vector<int64_t> doc3_values({1234});
const std::vector<int64_t> doc7_values({5678, 9876, 555, 777});