Skip to content

Commit

Permalink
Fixed wrong unittest Approx/issue46Test
Browse files Browse the repository at this point in the history
If the unittest created for issue cruppstahl#46 (Approx/issue46Test) was written
correctly then one of the problems related to issue cruppstahl#106 would be caught
much earlier.
  • Loading branch information
veloman-yunkan committed Oct 6, 2018
1 parent 03ab11b commit 0bfb11c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unittests/approx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 0bfb11c

Please sign in to comment.