[Groonga-commit] groonga/groonga [master] test: migrate a test from Cutter to grntest style

Back to archive index

null+****@clear***** null+****@clear*****
2012年 4月 20日 (金) 16:18:25 JST


khayashi	2012-04-20 16:18:25 +0900 (Fri, 20 Apr 2012)

  New Revision: 99edfa575d018281c62463ecb5b1c3463d3f0a7e

  Log:
    test: migrate a test from Cutter to grntest style
    
    The test checks the value of load command option(--each) accepts bracket.

  Added files:
    test/function/suite/load/each/scalar-geo-point-with-bracket.expected
    test/function/suite/load/each/scalar-geo-point-with-bracket.test

  Added: test/function/suite/load/each/scalar-geo-point-with-bracket.expected (+58 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/load/each/scalar-geo-point-with-bracket.expected    2012-04-20 16:18:25 +0900 (86452b9)
@@ -0,0 +1,58 @@
+table_create Users TABLE_HASH_KEY ShortText
+[[0,0.0,0.0],true]
+column_create Users location COLUMN_SCALAR WGS84GeoPoint
+[[0,0.0,0.0],true]
+column_create Users distance_from_tokyo_tocho COLUMN_SCALAR UInt32
+[[0,0.0,0.0],true]
+load --table Users --each 'distance_from_tokyo_tocho = geo_distance(location, "128481998x502890001")'
+[
+["_key", "location"],
+["yurakucho", "128429532x503148672"],
+["asagaya", "128536272x502686360"]
+]
+[[0,0.0,0.0],2]
+select Users
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  [
+    [
+      [
+        2
+      ],
+      [
+        [
+          "_id",
+          "UInt32"
+        ],
+        [
+          "_key",
+          "ShortText"
+        ],
+        [
+          "distance_from_tokyo_tocho",
+          "UInt32"
+        ],
+        [
+          "location",
+          "WGS84GeoPoint"
+        ]
+      ],
+      [
+        1,
+        "yurakucho",
+        6674,
+        "128429532x503148672"
+      ],
+      [
+        2,
+        "asagaya",
+        5364,
+        "128536272x502686360"
+      ]
+    ]
+  ]
+]

  Added: test/function/suite/load/each/scalar-geo-point-with-bracket.test (+13 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/load/each/scalar-geo-point-with-bracket.test    2012-04-20 16:18:25 +0900 (5ffc960)
@@ -0,0 +1,13 @@
+table_create Users TABLE_HASH_KEY ShortText
+column_create Users location COLUMN_SCALAR WGS84GeoPoint
+column_create Users distance_from_tokyo_tocho COLUMN_SCALAR UInt32
+
+load --table Users \
+--each 'distance_from_tokyo_tocho = geo_distance(location, "128481998x502890001")'
+[
+["_key", "location"],
+["yurakucho", "128429532x503148672"],
+["asagaya", "128536272x502686360"]
+]
+
+select Users




Groonga-commit メーリングリストの案内
Back to archive index