Improved test [skip ci]

This commit is contained in:
Andrew Kane
2022-02-11 00:15:37 -08:00
parent 76f117c81c
commit b64c7d6228

View File

@@ -27,7 +27,7 @@ sub test_recall
}
}
cmp_ok($count, ">=", $min);
cmp_ok($count / scalar(@expected_ids), ">=", $min);
}
# Initialize node
@@ -50,7 +50,7 @@ my $expected = $node->safe_psql("postgres", "SELECT i FROM tst ORDER BY v <-> '[
$node->safe_psql("postgres", "CREATE INDEX ON tst USING ivfflat (v);");
# Test approximate results
test_recall(1, 5);
test_recall(1, 0.5);
# Test probes
test_recall(100, 10);
test_recall(100, 1.0);