Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test geo_in_rectangle: migrate out of range error tests to grntest style
- Loading branch information
Showing
22 changed files
with
151 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#@disable-logging | ||
table_create LandMarks TABLE_NO_KEY | ||
column_create LandMarks point COLUMN_SCALAR WGS84GeoPoint | ||
|
||
table_create Points TABLE_PAT_KEY WGS84GeoPoint | ||
column_create Points land_mark_index COLUMN_INDEX LandMarks point | ||
|
||
#@enable-logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...mand/suite/select/filter/geo_in_rectangle/invalid/bottom_right_over_max_latitude.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
select LandMarks --filter 'geo_in_rectangle(point, "0x0", "90.0x0")' | ||
[ | ||
[ | ||
[ | ||
-22, | ||
0.0, | ||
0.0 | ||
], | ||
"geo_in_rectangle(): bottom right point's latitude is too big: <324000000>(max:324000000): (0,0) (324000000,0)" | ||
], | ||
[ | ||
|
||
] | ||
] | ||
#|e| geo_in_rectangle(): bottom right point's latitude is too big: <324000000>(max:324000000): (0,0) (324000000,0) |
3 changes: 3 additions & 0 deletions
3
.../command/suite/select/filter/geo_in_rectangle/invalid/bottom_right_over_max_latitude.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#@include fixture/geo/in_rectangle/ddl.grn | ||
|
||
select LandMarks --filter 'geo_in_rectangle(point, "0x0", "90.0x0")' |
15 changes: 15 additions & 0 deletions
15
...and/suite/select/filter/geo_in_rectangle/invalid/bottom_right_over_max_longitude.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
select LandMarks --filter 'geo_in_rectangle(point, "0x0", "0x180.0")' | ||
[ | ||
[ | ||
[ | ||
-22, | ||
0.0, | ||
0.0 | ||
], | ||
"geo_in_rectangle(): bottom right point's longitude is too big: <648000000>(max:648000000): (0,0) (0,648000000)" | ||
], | ||
[ | ||
|
||
] | ||
] | ||
#|e| geo_in_rectangle(): bottom right point's longitude is too big: <648000000>(max:648000000): (0,0) (0,648000000) |
3 changes: 3 additions & 0 deletions
3
...command/suite/select/filter/geo_in_rectangle/invalid/bottom_right_over_max_longitude.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#@include fixture/geo/in_rectangle/ddl.grn | ||
|
||
select LandMarks --filter 'geo_in_rectangle(point, "0x0", "0x180.0")' |
15 changes: 15 additions & 0 deletions
15
...mand/suite/select/filter/geo_in_rectangle/invalid/bottom_right_over_min_latitude.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
select LandMarks --filter 'geo_in_rectangle(point, "0x0", "-90.0x0")' | ||
[ | ||
[ | ||
[ | ||
-38, | ||
0.0, | ||
0.0 | ||
], | ||
"geo_in_rectangle(): the Southern Hemisphere is not implemented." | ||
], | ||
[ | ||
|
||
] | ||
] | ||
#|e| geo_in_rectangle(): the Southern Hemisphere is not implemented. |
3 changes: 3 additions & 0 deletions
3
.../command/suite/select/filter/geo_in_rectangle/invalid/bottom_right_over_min_latitude.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#@include fixture/geo/in_rectangle/ddl.grn | ||
|
||
select LandMarks --filter 'geo_in_rectangle(point, "0x0", "-90.0x0")' |
15 changes: 15 additions & 0 deletions
15
...and/suite/select/filter/geo_in_rectangle/invalid/bottom_right_over_min_longitude.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
select LandMarks --filter 'geo_in_rectangle(point, "0x0", "0x-180.0")' | ||
[ | ||
[ | ||
[ | ||
-22, | ||
0.0, | ||
0.0 | ||
], | ||
"geo_in_rectangle(): bottom right point's longitude is too small: <-648000000>(min:-648000000): (0,0) (0,-648000000)" | ||
], | ||
[ | ||
|
||
] | ||
] | ||
#|e| geo_in_rectangle(): bottom right point's longitude is too small: <-648000000>(min:-648000000): (0,0) (0,-648000000) |
3 changes: 3 additions & 0 deletions
3
...command/suite/select/filter/geo_in_rectangle/invalid/bottom_right_over_min_longitude.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#@include fixture/geo/in_rectangle/ddl.grn | ||
|
||
select LandMarks --filter 'geo_in_rectangle(point, "0x0", "0x-180.0")' |
15 changes: 15 additions & 0 deletions
15
.../command/suite/select/filter/geo_in_rectangle/invalid/top_left_over_max_latitude.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
select LandMarks --filter 'geo_in_rectangle(point, "90.0x0", "0x0")' | ||
[ | ||
[ | ||
[ | ||
-22, | ||
0.0, | ||
0.0 | ||
], | ||
"geo_in_rectangle(): top left point's latitude is too big: <324000000>(max:324000000): (324000000,0) (0,0)" | ||
], | ||
[ | ||
|
||
] | ||
] | ||
#|e| geo_in_rectangle(): top left point's latitude is too big: <324000000>(max:324000000): (324000000,0) (0,0) |
3 changes: 3 additions & 0 deletions
3
test/command/suite/select/filter/geo_in_rectangle/invalid/top_left_over_max_latitude.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#@include fixture/geo/in_rectangle/ddl.grn | ||
|
||
select LandMarks --filter 'geo_in_rectangle(point, "90.0x0", "0x0")' |
15 changes: 15 additions & 0 deletions
15
...command/suite/select/filter/geo_in_rectangle/invalid/top_left_over_max_longitude.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
select LandMarks --filter 'geo_in_rectangle(point, "0x180.0", "0x0")' | ||
[ | ||
[ | ||
[ | ||
-22, | ||
0.0, | ||
0.0 | ||
], | ||
"geo_in_rectangle(): top left point's longitude is too big: <648000000>(max:648000000): (0,648000000) (0,0)" | ||
], | ||
[ | ||
|
||
] | ||
] | ||
#|e| geo_in_rectangle(): top left point's longitude is too big: <648000000>(max:648000000): (0,648000000) (0,0) |
3 changes: 3 additions & 0 deletions
3
test/command/suite/select/filter/geo_in_rectangle/invalid/top_left_over_max_longitude.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#@include fixture/geo/in_rectangle/ddl.grn | ||
|
||
select LandMarks --filter 'geo_in_rectangle(point, "0x180.0", "0x0")' |
15 changes: 15 additions & 0 deletions
15
.../command/suite/select/filter/geo_in_rectangle/invalid/top_left_over_min_latitude.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
select LandMarks --filter 'geo_in_rectangle(point, "-90.0x0", "0x0")' | ||
[ | ||
[ | ||
[ | ||
-38, | ||
0.0, | ||
0.0 | ||
], | ||
"geo_in_rectangle(): the Southern Hemisphere is not implemented." | ||
], | ||
[ | ||
|
||
] | ||
] | ||
#|e| geo_in_rectangle(): the Southern Hemisphere is not implemented. |
3 changes: 3 additions & 0 deletions
3
test/command/suite/select/filter/geo_in_rectangle/invalid/top_left_over_min_latitude.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#@include fixture/geo/in_rectangle/ddl.grn | ||
|
||
select LandMarks --filter 'geo_in_rectangle(point, "-90.0x0", "0x0")' |
15 changes: 15 additions & 0 deletions
15
...command/suite/select/filter/geo_in_rectangle/invalid/top_left_over_min_longitude.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
select LandMarks --filter 'geo_in_rectangle(point, "0x-180.0", "0x0")' | ||
[ | ||
[ | ||
[ | ||
-22, | ||
0.0, | ||
0.0 | ||
], | ||
"geo_in_rectangle(): top left point's longitude is too small: <-648000000>(min:-648000000): (0,-648000000) (0,0)" | ||
], | ||
[ | ||
|
||
] | ||
] | ||
#|e| geo_in_rectangle(): top left point's longitude is too small: <-648000000>(min:-648000000): (0,-648000000) (0,0) |
3 changes: 3 additions & 0 deletions
3
test/command/suite/select/filter/geo_in_rectangle/invalid/top_left_over_min_longitude.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#@include fixture/geo/in_rectangle/ddl.grn | ||
|
||
select LandMarks --filter 'geo_in_rectangle(point, "0x-180.0", "0x0")' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters