[Groonga-commit] groonga/groonga [master] test functional load: use meaningful object names

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 17日 (火) 23:18:19 JST


Kouhei Sutou	2012-07-17 23:18:19 +0900 (Tue, 17 Jul 2012)

  New Revision: 6690522c4e917594b55a883b4ac99bd9a2071781
  https://github.com/groonga/groonga/commit/6690522c4e917594b55a883b4ac99bd9a2071781

  Log:
    test functional load: use meaningful object names

  Modified files:
    test/function/suite/load/invalid/geo-point-not-break-following-text.expected
    test/function/suite/load/invalid/geo-point-not-break-following-text.test

  Modified: test/function/suite/load/invalid/geo-point-not-break-following-text.expected (+29 -13)
===================================================================
--- test/function/suite/load/invalid/geo-point-not-break-following-text.expected    2012-07-17 22:06:48 +0900 (5e363a8)
+++ test/function/suite/load/invalid/geo-point-not-break-following-text.expected    2012-07-17 23:18:19 +0900 (88fb65c)
@@ -1,20 +1,36 @@
-table_create Hoge TABLE_HASH_KEY ShortText
+table_create Shops TABLE_HASH_KEY ShortText
 [[0,0.0,0.0],true]
-column_create Hoge point COLUMN_SCALAR WGS84GeoPoint
+column_create Shops location COLUMN_SCALAR WGS84GeoPoint
 [[0,0.0,0.0],true]
-column_create Hoge text COLUMN_SCALAR ShortText
+column_create Shops code COLUMN_SCALAR ShortText
 [[0,0.0,0.0],true]
-load --table Hoge
+load --table Shops
 [
-{"_key":"a","point":"x","text":"a0000000"},
-{"_key":"b","point":"x","text":"b0000000"},
-{"_key":"b","point":"x","text":"b0000001"},
-{"_key":"b","point":"x","text":"b0000002"},
-{"_key":"b","point":"x","text":"b0000003"},
-{"_key":"b","point":"x","text":"b0000004"},
-{"_key":"b","point":"x","text":"b0000005"},
-{"_key":"b","point":"x","text":"b0000006"}
+{"_key":"a","location":"x","code":"a0000000"},
+{"_key":"b","location":"x","code":"b0000000"},
+{"_key":"b","location":"x","code":"b0000001"},
+{"_key":"b","location":"x","code":"b0000002"},
+{"_key":"b","location":"x","code":"b0000003"},
+{"_key":"b","location":"x","code":"b0000004"},
+{"_key":"b","location":"x","code":"b0000005"},
+{"_key":"b","location":"x","code":"b0000006"}
 ]
 [[0,0.0,0.0],8]
-select Hoge --filter 'text == "a0000000"' --output_columns _key
+#|e| <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">
+#|e| [table][load] failed to set column value: <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">: key: <"a">, column: <location>, value: <"x">
+#|e| <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">
+#|e| [table][load] failed to set column value: <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">: key: <"b">, column: <location>, value: <"x">
+#|e| <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">
+#|e| [table][load] failed to set column value: <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">: key: <"b">, column: <location>, value: <"x">
+#|e| <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">
+#|e| [table][load] failed to set column value: <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">: key: <"b">, column: <location>, value: <"x">
+#|e| <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">
+#|e| [table][load] failed to set column value: <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">: key: <"b">, column: <location>, value: <"x">
+#|e| <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">
+#|e| [table][load] failed to set column value: <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">: key: <"b">, column: <location>, value: <"x">
+#|e| <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">
+#|e| [table][load] failed to set column value: <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">: key: <"b">, column: <location>, value: <"x">
+#|e| <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">
+#|e| [table][load] failed to set column value: <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">: key: <"b">, column: <location>, value: <"x">
+select Shops --filter 'code == "a0000000"' --output_columns _key
 [[0,0.0,0.0],[[[1],[["_key","ShortText"]],["a"]]]]

  Modified: test/function/suite/load/invalid/geo-point-not-break-following-text.test (+13 -13)
===================================================================
--- test/function/suite/load/invalid/geo-point-not-break-following-text.test    2012-07-17 22:06:48 +0900 (46768a2)
+++ test/function/suite/load/invalid/geo-point-not-break-following-text.test    2012-07-17 23:18:19 +0900 (0986737)
@@ -1,17 +1,17 @@
-table_create Hoge TABLE_HASH_KEY ShortText
-column_create Hoge point COLUMN_SCALAR WGS84GeoPoint
-column_create Hoge text COLUMN_SCALAR ShortText
+table_create Shops TABLE_HASH_KEY ShortText
+column_create Shops location COLUMN_SCALAR WGS84GeoPoint
+column_create Shops code COLUMN_SCALAR ShortText
 
-load --table Hoge
+load --table Shops
 [
-{"_key":"a","point":"x","text":"a0000000"},
-{"_key":"b","point":"x","text":"b0000000"},
-{"_key":"b","point":"x","text":"b0000001"},
-{"_key":"b","point":"x","text":"b0000002"},
-{"_key":"b","point":"x","text":"b0000003"},
-{"_key":"b","point":"x","text":"b0000004"},
-{"_key":"b","point":"x","text":"b0000005"},
-{"_key":"b","point":"x","text":"b0000006"}
+{"_key":"a","location":"x","code":"a0000000"},
+{"_key":"b","location":"x","code":"b0000000"},
+{"_key":"b","location":"x","code":"b0000001"},
+{"_key":"b","location":"x","code":"b0000002"},
+{"_key":"b","location":"x","code":"b0000003"},
+{"_key":"b","location":"x","code":"b0000004"},
+{"_key":"b","location":"x","code":"b0000005"},
+{"_key":"b","location":"x","code":"b0000006"}
 ]
 
-select Hoge --filter 'text == "a0000000"' --output_columns _key
+select Shops --filter 'code == "a0000000"' --output_columns _key
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



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