[Groonga-commit] groonga/groonga [master] test: raise runtime error when parsing failed

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 4日 (月) 11:54:48 JST


HAYASHI Kentaro	2012-06-04 11:54:48 +0900 (Mon, 04 Jun 2012)

  New Revision: e92b76091a1e7964a9815b94537ef34ebd320684

  Log:
    test: raise runtime error when parsing failed

  Modified files:
    test/function/tools/geo/generate-grntest-data.rb

  Modified: test/function/tools/geo/generate-grntest-data.rb (+2 -0)
===================================================================
--- test/function/tools/geo/generate-grntest-data.rb    2012-06-04 11:28:47 +0900 (12ab5f6)
+++ test/function/tools/geo/generate-grntest-data.rb    2012-06-04 11:54:48 +0900 (81f5911)
@@ -648,6 +648,8 @@ class GrnTestData
         data = file.read
         if data =~ /.*,\[(\d+)\]\]\]\]\n$/
           distance = $1.to_i
+        else
+          raise "failed to parse the value of distance"
         end
       end
     end




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