From 0bfb11c555ec8cea395f73a461cd1f7c963ce635 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Sun, 7 Oct 2018 00:48:07 +0400 Subject: [PATCH] Fixed wrong unittest Approx/issue46Test If the unittest created for issue #46 (Approx/issue46Test) was written correctly then one of the problems related to issue #106 would be caught much earlier. --- unittests/approx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unittests/approx.cpp b/unittests/approx.cpp index 80bb7a686..3f9672d2c 100644 --- a/unittests/approx.cpp +++ b/unittests/approx.cpp @@ -476,7 +476,8 @@ struct ApproxFixture : BaseFixture { ups_key_t key = ups_make_key((void *)"aa", 3); ups_record_t rec = {0}; - REQUIRE(0 == ups_db_find(db, txn, &key, &rec, UPS_FIND_GEQ_MATCH)); + REQUIRE(UPS_KEY_NOT_FOUND == + ups_db_find(db, txn, &key, &rec, UPS_FIND_GEQ_MATCH)); } void issue52Test() {