[Groonga-commit] groonga/groonga at bae2ed1 [master] test: add a test for invalid patricia trie node add case

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Apr 20 22:53:22 JST 2015


Kouhei Sutou	2015-04-20 22:53:22 +0900 (Mon, 20 Apr 2015)

  New Revision: bae2ed1f7237b9c7cf142af8f413f0cb17843b39
  https://github.com/groonga/groonga/commit/bae2ed1f7237b9c7cf142af8f413f0cb17843b39

  Message:
    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!!!

  Added files:
    test/command/suite/tables/patricia_trie/delete.expected
    test/command/suite/tables/patricia_trie/delete.test

  Added: test/command/suite/tables/patricia_trie/delete.expected (+21 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/tables/patricia_trie/delete.expected    2015-04-20 22:53:22 +0900 (cf6e16a)
@@ -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"]]]]]

  Added: test/command/suite/tables/patricia_trie/delete.test (+17 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/tables/patricia_trie/delete.test    2015-04-20 22:53:22 +0900 (df9304a)
@@ -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
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index