mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-18 02:04:33 +08:00
Use consistent style in TAP tests [skip ci]
This commit is contained in:
@@ -55,7 +55,8 @@ $node->safe_psql("postgres",
|
||||
);
|
||||
|
||||
# Generate queries
|
||||
for (1..20) {
|
||||
for (1 .. 20)
|
||||
{
|
||||
my $r1 = rand();
|
||||
my $r2 = rand();
|
||||
my $r3 = rand();
|
||||
@@ -65,12 +66,14 @@ for (1..20) {
|
||||
# Check each index type
|
||||
my @operators = ("<->", "<#>", "<=>");
|
||||
|
||||
foreach (@operators) {
|
||||
foreach (@operators)
|
||||
{
|
||||
my $operator = $_;
|
||||
|
||||
# Get exact results
|
||||
@expected = ();
|
||||
foreach (@queries) {
|
||||
foreach (@queries)
|
||||
{
|
||||
my $res = $node->safe_psql("postgres", "SELECT i FROM tst ORDER BY v $operator '$_' LIMIT $limit;");
|
||||
push(@expected, $res);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user