Navigation Menu

Skip to content

Commit

Permalink
test: add a test for invalid patricia trie node add case
Browse files Browse the repository at this point in the history
The test is failed for now. We should fix it.

[groonga-dev,03177]

Reported by yuya sako. Thanks!!!
  • Loading branch information
kou committed Apr 20, 2015
1 parent e0f1b63 commit bae2ed1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/command/suite/tables/patricia_trie/delete.expected
@@ -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"]]]]]
17 changes: 17 additions & 0 deletions test/command/suite/tables/patricia_trie/delete.test
@@ -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

0 comments on commit bae2ed1

Please sign in to comment.