diff options
author | Geir Storli <geirst@yahooinc.com> | 2024-01-05 10:56:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-05 10:56:40 +0100 |
commit | 6f478f8958bb8f4852fa6f059fe2cb34c2afdb00 (patch) | |
tree | aad19487ccadc8846d3f908aa8d00cb717910511 | |
parent | 8957f8242df77f88d5104208615dc6cc7c9ccd3d (diff) | |
parent | 236e3839ea219219a82d51439d7d7d986dc8be52 (diff) |
Merge pull request #29809 from vespa-engine/toregge/use-plain-asserts-in-document-weight-attribute-helper
Use plain asserts in DocumentWeightAttributeHelper.
-rw-r--r-- | searchlib/src/vespa/searchlib/test/document_weight_attribute_helper.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searchlib/src/vespa/searchlib/test/document_weight_attribute_helper.h b/searchlib/src/vespa/searchlib/test/document_weight_attribute_helper.h index 059456c383b..10d64b0aa6d 100644 --- a/searchlib/src/vespa/searchlib/test/document_weight_attribute_helper.h +++ b/searchlib/src/vespa/searchlib/test/document_weight_attribute_helper.h @@ -6,7 +6,7 @@ #include <vespa/searchlib/attribute/multinumericattribute.h> #include <vespa/searchlib/attribute/multinumericpostattribute.hpp> #include <vespa/searchlib/attribute/attributefactory.h> -#include <vespa/vespalib/testkit/test_kit.h> +#include <cassert> namespace search::test { @@ -25,8 +25,8 @@ public: _int_attr(dynamic_cast<IntegerAttribute *>(_attr.get())), _dww(_attr->as_docid_with_weight_posting_store()) { - ASSERT_TRUE(_int_attr != nullptr); - ASSERT_TRUE(_dww != nullptr); + assert(_int_attr != nullptr); + assert(_dww != nullptr); } ~DocumentWeightAttributeHelper(); @@ -36,7 +36,7 @@ public: _attr->addDoc(docid); } _attr->commit(); - ASSERT_EQUAL((limit - 1), docid); + assert((limit - 1) == docid); } void set_doc(uint32_t docid, int64_t key, int32_t weight) { |