mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-03 03:00:56 +08:00
Simplified TAP tests [skip ci]
This commit is contained in:
@@ -92,14 +92,8 @@ foreach (@operators)
|
||||
}
|
||||
$node->safe_psql("postgres", "CREATE INDEX ON tst USING hnsw (v $opclass);");
|
||||
|
||||
if ($operator eq "<#>")
|
||||
{
|
||||
test_recall(0.80, $operator);
|
||||
}
|
||||
else
|
||||
{
|
||||
test_recall(0.99, $operator);
|
||||
}
|
||||
my $min = $operator eq "<#>" ? 0.80 : 0.99;
|
||||
test_recall($min, $operator);
|
||||
}
|
||||
|
||||
done_testing();
|
||||
|
||||
@@ -104,14 +104,8 @@ foreach (@operators)
|
||||
push(@expected, $res);
|
||||
}
|
||||
|
||||
if ($operator eq "<#>")
|
||||
{
|
||||
test_recall(0.80, $operator);
|
||||
}
|
||||
else
|
||||
{
|
||||
test_recall(0.99, $operator);
|
||||
}
|
||||
my $min = $operator eq "<#>" ? 0.80 : 0.99;
|
||||
test_recall($min, $operator);
|
||||
|
||||
$node->safe_psql("postgres", "DROP INDEX idx;");
|
||||
$node->safe_psql("postgres", "TRUNCATE tst;");
|
||||
|
||||
Reference in New Issue
Block a user