null+****@clear*****
null+****@clear*****
2012年 7月 17日 (火) 23:26:23 JST
Kouhei Sutou 2012-07-17 23:26:23 +0900 (Tue, 17 Jul 2012) New Revision: 6e1b41680ba0109e8c461fdcd893cbbb3742cbf7 https://github.com/groonga/groonga/commit/6e1b41680ba0109e8c461fdcd893cbbb3742cbf7 Log: test function load: confirm content after loading invalid value Modified files: test/function/suite/load/invalid/geo-point-too-large-latitude.expected test/function/suite/load/invalid/geo-point-too-large-latitude.test test/function/suite/load/invalid/geo-point-too-large-longitude.expected test/function/suite/load/invalid/geo-point-too-large-longitude.test test/function/suite/load/invalid/geo-point-too-small-latitude.expected test/function/suite/load/invalid/geo-point-too-small-latitude.test test/function/suite/load/invalid/geo-point-too-small-longitude.expected test/function/suite/load/invalid/geo-point-too-small-longitude.test Modified: test/function/suite/load/invalid/geo-point-too-large-latitude.expected (+34 -0) =================================================================== --- test/function/suite/load/invalid/geo-point-too-large-latitude.expected 2012-07-17 23:23:38 +0900 (4945bd3) +++ test/function/suite/load/invalid/geo-point-too-large-latitude.expected 2012-07-17 23:26:23 +0900 (8da95fc) @@ -9,3 +9,37 @@ load --table Shops [[0,0.0,0.0],1] #|e| <Shops.location>: failed to cast to <WGS84GeoPoint>: <"324000001x-74.044444"> #|e| [table][load] failed to set column value: <Shops.location>: failed to cast to <WGS84GeoPoint>: <"324000001x-74.044444">: key: <"Statue of Liberty">, column: <location>, value: <"324000001x-74.044444"> +select Shops +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 1 + ], + [ + [ + "_id", + "UInt32" + ], + [ + "_key", + "ShortText" + ], + [ + "location", + "WGS84GeoPoint" + ] + ], + [ + 1, + "Statue of Liberty", + "0x0" + ] + ] + ] +] Modified: test/function/suite/load/invalid/geo-point-too-large-latitude.test (+2 -0) =================================================================== --- test/function/suite/load/invalid/geo-point-too-large-latitude.test 2012-07-17 23:23:38 +0900 (8546685) +++ test/function/suite/load/invalid/geo-point-too-large-latitude.test 2012-07-17 23:26:23 +0900 (b524d42) @@ -5,3 +5,5 @@ load --table Shops [ {"_key": "Statue of Liberty", "location": "324000001x-74.044444"} ] + +select Shops Modified: test/function/suite/load/invalid/geo-point-too-large-longitude.expected (+34 -0) =================================================================== --- test/function/suite/load/invalid/geo-point-too-large-longitude.expected 2012-07-17 23:23:38 +0900 (4fdd463) +++ test/function/suite/load/invalid/geo-point-too-large-longitude.expected 2012-07-17 23:26:23 +0900 (77c4e06) @@ -9,3 +9,37 @@ load --table Shops [[0,0.0,0.0],1] #|e| <Shops.location>: failed to cast to <WGS84GeoPoint>: <"40.689167x648000001"> #|e| [table][load] failed to set column value: <Shops.location>: failed to cast to <WGS84GeoPoint>: <"40.689167x648000001">: key: <"Statue of Liberty">, column: <location>, value: <"40.689167x648000001"> +select Shops +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 1 + ], + [ + [ + "_id", + "UInt32" + ], + [ + "_key", + "ShortText" + ], + [ + "location", + "WGS84GeoPoint" + ] + ], + [ + 1, + "Statue of Liberty", + "0x0" + ] + ] + ] +] Modified: test/function/suite/load/invalid/geo-point-too-large-longitude.test (+2 -0) =================================================================== --- test/function/suite/load/invalid/geo-point-too-large-longitude.test 2012-07-17 23:23:38 +0900 (8097c64) +++ test/function/suite/load/invalid/geo-point-too-large-longitude.test 2012-07-17 23:26:23 +0900 (fe6b242) @@ -5,3 +5,5 @@ load --table Shops [ {"_key": "Statue of Liberty", "location": "40.689167x648000001"} ] + +select Shops Modified: test/function/suite/load/invalid/geo-point-too-small-latitude.expected (+34 -0) =================================================================== --- test/function/suite/load/invalid/geo-point-too-small-latitude.expected 2012-07-17 23:23:38 +0900 (9c9eeea) +++ test/function/suite/load/invalid/geo-point-too-small-latitude.expected 2012-07-17 23:26:23 +0900 (e4458f5) @@ -9,3 +9,37 @@ load --table Shops [[0,0.0,0.0],1] #|e| <Shops.location>: failed to cast to <WGS84GeoPoint>: <"-324000001x-74.044444"> #|e| [table][load] failed to set column value: <Shops.location>: failed to cast to <WGS84GeoPoint>: <"-324000001x-74.044444">: key: <"Statue of Liberty">, column: <location>, value: <"-324000001x-74.044444"> +select Shops +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 1 + ], + [ + [ + "_id", + "UInt32" + ], + [ + "_key", + "ShortText" + ], + [ + "location", + "WGS84GeoPoint" + ] + ], + [ + 1, + "Statue of Liberty", + "0x0" + ] + ] + ] +] Modified: test/function/suite/load/invalid/geo-point-too-small-latitude.test (+2 -0) =================================================================== --- test/function/suite/load/invalid/geo-point-too-small-latitude.test 2012-07-17 23:23:38 +0900 (bae16f2) +++ test/function/suite/load/invalid/geo-point-too-small-latitude.test 2012-07-17 23:26:23 +0900 (4d05f6f) @@ -5,3 +5,5 @@ load --table Shops [ {"_key": "Statue of Liberty", "location": "-324000001x-74.044444"} ] + +select Shops Modified: test/function/suite/load/invalid/geo-point-too-small-longitude.expected (+34 -0) =================================================================== --- test/function/suite/load/invalid/geo-point-too-small-longitude.expected 2012-07-17 23:23:38 +0900 (fede6c8) +++ test/function/suite/load/invalid/geo-point-too-small-longitude.expected 2012-07-17 23:26:23 +0900 (7c8e67c) @@ -9,3 +9,37 @@ load --table Shops [[0,0.0,0.0],1] #|e| <Shops.location>: failed to cast to <WGS84GeoPoint>: <"40.689167x-648000001"> #|e| [table][load] failed to set column value: <Shops.location>: failed to cast to <WGS84GeoPoint>: <"40.689167x-648000001">: key: <"Statue of Liberty">, column: <location>, value: <"40.689167x-648000001"> +select Shops +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 1 + ], + [ + [ + "_id", + "UInt32" + ], + [ + "_key", + "ShortText" + ], + [ + "location", + "WGS84GeoPoint" + ] + ], + [ + 1, + "Statue of Liberty", + "0x0" + ] + ] + ] +] Modified: test/function/suite/load/invalid/geo-point-too-small-longitude.test (+2 -0) =================================================================== --- test/function/suite/load/invalid/geo-point-too-small-longitude.test 2012-07-17 23:23:38 +0900 (d872cbd) +++ test/function/suite/load/invalid/geo-point-too-small-longitude.test 2012-07-17 23:26:23 +0900 (c29b91d) @@ -5,3 +5,5 @@ load --table Shops [ {"_key": "Statue of Liberty", "location": "40.689167x-648000001"} ] + +select Shops -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...ダウンロード