null+****@clear*****
null+****@clear*****
2012年 5月 16日 (水) 11:52:31 JST
HAYASHI Kentaro 2012-05-16 11:52:31 +0900 (Wed, 16 May 2012) New Revision: 0032fe1feb980f39d03e9476b93d4507ec1ce21c Log: test: move constant variable to outside of block Modified files: test/function/tools/geo/generate-grntest-data.rb Modified: test/function/tools/geo/generate-grntest-data.rb (+2 -2) =================================================================== --- test/function/tools/geo/generate-grntest-data.rb 2012-05-16 11:48:08 +0900 (976faca) +++ test/function/tools/geo/generate-grntest-data.rb 2012-05-16 11:52:31 +0900 (93e3213) @@ -15,6 +15,8 @@ EOF CREATE_RESULT = "[[0,0.0,0.0],true]\n" LOAD_RESULT = "[[0,0.0,0.0],1]\n" +SELECT = "select Geo --output_columns distance " + SELECT_PRE = "[[0,0.0,0.0],[[[1],[[\"_score\",\"Int32\"]],[" SELECT_POST = "]]]]" @@ -209,8 +211,6 @@ if __FILE__ == $0 File.open(OPTS[:csv], "r") do |csvfile| lines = csvfile.readlines - SELECT = "select Geo --output_columns distance " - lines.each_with_index do |line, i| next if i == 0 # skip header