null+****@clear*****
null+****@clear*****
2012年 5月 16日 (水) 13:59:58 JST
HAYASHI Kentaro 2012-05-16 13:59:58 +0900 (Wed, 16 May 2012)
New Revision: b55390b29be7ed092e4779a152b0346a28c92707
Log:
test: add GrnTestData class definition
Modified files:
test/function/tools/geo/generate-grntest-data.rb
Modified: test/function/tools/geo/generate-grntest-data.rb (+11 -0)
===================================================================
--- test/function/tools/geo/generate-grntest-data.rb 2012-05-16 13:38:09 +0900 (6e192c7)
+++ test/function/tools/geo/generate-grntest-data.rb 2012-05-16 13:59:58 +0900 (523f1a5)
@@ -20,6 +20,17 @@ SELECT = "select Geo --output_columns distance "
SELECT_PRE = "[[0,0.0,0.0],[[[1],[[\"_score\",\"Int32\"]],["
SELECT_POST = "]]]]"
+class GrnTestData
+
+ attr :csv_file, :options
+
+ def initialize(csv_file, options = {})
+ @csv_file = csv_file
+ @options = options
+ end
+
+end
+
def long?(start_lng_deg, end_lng_deg)
if start_lng_deg != end_lng_deg and
((start_lng_deg > 0 && end_lng_deg.to_i < 0) or