Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add a test for invalid patricia trie node add case
The test is failed for now. We should fix it. [groonga-dev,03177] Reported by yuya sako. Thanks!!!
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| table_create names TABLE_PAT_KEY ShortText | ||
| [[0,0.0,0.0],true] | ||
| load --table names | ||
| [ | ||
| {"_key": "2"}, | ||
| {"_key": "1"}, | ||
| {"_key": "3"} | ||
| ] | ||
| [[0,0.0,0.0],3] | ||
| delete --table names --id 1 | ||
| [[0,0.0,0.0],true] | ||
| select names | ||
| [[0,0.0,0.0],[[[2],[["_id","UInt32"],["_key","ShortText"]],[2,"1"],[3,"3"]]]] | ||
| delete --table names --id 2 | ||
| [[0,0.0,0.0],true] | ||
| select names | ||
| [[0,0.0,0.0],[[[1],[["_id","UInt32"],["_key","ShortText"]],[3,"3"]]]] | ||
| delete --table names --id 3 | ||
| [[0,0.0,0.0],true] | ||
| select names | ||
| [[0,0.0,0.0],[[[0],[["_id","UInt32"],["_key","ShortText"]]]]] |
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,17 @@ | ||
| table_create names TABLE_PAT_KEY ShortText | ||
|
|
||
| load --table names | ||
| [ | ||
| {"_key": "2"}, | ||
| {"_key": "1"}, | ||
| {"_key": "3"} | ||
| ] | ||
|
|
||
| delete --table names --id 1 | ||
| select names | ||
|
|
||
| delete --table names --id 2 | ||
| select names | ||
|
|
||
| delete --table names --id 3 | ||
| select names |