summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2024-01-05 09:42:41 +0100
committerTor Egge <Tor.Egge@online.no>2024-01-05 09:42:41 +0100
commit236e3839ea219219a82d51439d7d7d986dc8be52 (patch)
tree96a8d69afadf16950d373dce55e7288b75b34710
parent6d2226e2bf35e32cf618ff12a7e2968c85eabf1f (diff)
Use plain asserts in DocumentWeightAttributeHelper.
-rw-r--r--searchlib/src/vespa/searchlib/test/document_weight_attribute_helper.h8
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) {