Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: migrate Cutter test for nonexistent key equal to grntest
- Loading branch information
Showing
3 changed files
with
66 additions
and
21 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
test/command/suite/select/filter/no_index/equal/nonexistent_reference_record.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,48 @@ | ||
table_create Bookmarks TABLE_HASH_KEY ShortText | ||
[[0,0.0,0.0],true] | ||
column_create Bookmarks title COLUMN_SCALAR ShortText | ||
[[0,0.0,0.0],true] | ||
table_create Users TABLE_HASH_KEY ShortText | ||
[[0,0.0,0.0],true] | ||
column_create Users bookmark COLUMN_SCALAR Bookmarks | ||
[[0,0.0,0.0],true] | ||
load --table Bookmarks | ||
[ | ||
{"_key": "http://groonga.org/", "title": "Groonga"} | ||
] | ||
[[0,0.0,0.0],1] | ||
load --table Users | ||
[ | ||
{"_key": "alice", "bookmark": "http://groonga.org/"}, | ||
{"_key": "bob"} | ||
] | ||
[[0,0.0,0.0],2] | ||
select Users --filter 'bookmark == "http://nonexistent.example.com/"' | ||
[ | ||
[ | ||
0, | ||
0.0, | ||
0.0 | ||
], | ||
[ | ||
[ | ||
[ | ||
0 | ||
], | ||
[ | ||
[ | ||
"_id", | ||
"UInt32" | ||
], | ||
[ | ||
"_key", | ||
"ShortText" | ||
], | ||
[ | ||
"bookmark", | ||
"Bookmarks" | ||
] | ||
] | ||
] | ||
] | ||
] |
18 changes: 18 additions & 0 deletions
18
test/command/suite/select/filter/no_index/equal/nonexistent_reference_record.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,18 @@ | ||
table_create Bookmarks TABLE_HASH_KEY ShortText | ||
column_create Bookmarks title COLUMN_SCALAR ShortText | ||
|
||
table_create Users TABLE_HASH_KEY ShortText | ||
column_create Users bookmark COLUMN_SCALAR Bookmarks | ||
|
||
load --table Bookmarks | ||
[ | ||
{"_key": "http://groonga.org/", "title": "Groonga"} | ||
] | ||
|
||
load --table Users | ||
[ | ||
{"_key": "alice", "bookmark": "http://groonga.org/"}, | ||
{"_key": "bob"} | ||
] | ||
|
||
select Users --filter 'bookmark == "http://nonexistent.example.com/"' |
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