[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日 (金) 11:19:32 JST


khayashi	2012-04-20 11:19:32 +0900 (Fri, 20 Apr 2012)

  New Revision: 97f454fabb28700c6f421d45ea9a69cc316f7d38

  Log:
    test: migrate a test from Cutter to grntest style
    
    The test checks loading the max longitude value of geo point.

  Added files:
    test/function/suite/load/scalar-geo-point-valid-large-longitude.expected
    test/function/suite/load/scalar-geo-point-valid-large-longitude.test

  Added: test/function/suite/load/scalar-geo-point-valid-large-longitude.expected (+43 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/load/scalar-geo-point-valid-large-longitude.expected    2012-04-20 11:19:32 +0900 (5cd2c22)
@@ -0,0 +1,43 @@
+table_create Shops TABLE_HASH_KEY ShortText
+[[0,0.0,0.0],true]
+column_create Shops location COLUMN_SCALAR WGS84GeoPoint
+[[0,0.0,0.0],true]
+load --table Shops
+[
+{"_key": "たかね", "location": "128514964x648000000"}
+]
+[[0,0.0,0.0],1]
+select Shops
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  [
+    [
+      [
+        1
+      ],
+      [
+        [
+          "_id",
+          "UInt32"
+        ],
+        [
+          "_key",
+          "ShortText"
+        ],
+        [
+          "location",
+          "WGS84GeoPoint"
+        ]
+      ],
+      [
+        1,
+        "たかね",
+        "128514964x648000000"
+      ]
+    ]
+  ]
+]

  Added: test/function/suite/load/scalar-geo-point-valid-large-longitude.test (+9 -0) 100644
===================================================================
--- /dev/null
+++ test/function/suite/load/scalar-geo-point-valid-large-longitude.test    2012-04-20 11:19:32 +0900 (faff775)
@@ -0,0 +1,9 @@
+table_create Shops TABLE_HASH_KEY ShortText
+column_create Shops location COLUMN_SCALAR WGS84GeoPoint
+
+load --table Shops
+[
+{"_key": "たかね", "location": "128514964x648000000"}
+]
+
+select Shops




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