PT-96 Fixed tests for Schema.pm

Forced sorting of some arrays to make them possible to test
This commit is contained in:
Carlos Salguero
2017-03-09 17:14:37 -03:00
parent 2ec4409f2f
commit 4408d5f6c2
2 changed files with 5 additions and 2 deletions

View File

@@ -197,7 +197,9 @@ sub find_column {
}
}
@tbls = sort {$b->{name} cmp $a->{name}} @tbls;
return \@tbls;
}
sub find_table {
@@ -248,6 +250,7 @@ sub find_table {
}
}
@dbs = sort @dbs;
return \@dbs;
}

View File

@@ -103,8 +103,8 @@ test_find_col(
test_find_col(
$sq->find_column(col_name => 'c1'),
[
['test', 'a'],
['test', 'b'],
['test', 'a'],
['test2', 'a'],
],
"Find duplicate column c1"
@@ -148,8 +148,8 @@ test_find_col(
test_find_col(
$sq->find_column(col => 'c1'),
[
['test', 'a'],
['test', 'b'],
['test', 'a'],
['test2', 'a'],
],
"Find duplicate column c1 (struct)"