[Groonga-commit] groonga/groonga [master] test: use "and" instead of "&&"

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 16日 (水) 16:59:45 JST


HAYASHI Kentaro	2012-05-16 16:59:45 +0900 (Wed, 16 May 2012)

  New Revision: c85bd6772de29f7942d65da9c1123caa094f1d87

  Log:
    test: use "and" instead of "&&"

  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 16:59:03 +0900 (22533c1)
+++ test/function/tools/geo/generate-grntest-data.rb    2012-05-16 16:59:45 +0900 (23bf084)
@@ -150,8 +150,8 @@ class GrnTestData
 
   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
-        (start_lng_deg < 0 && end_lng_deg.to_i > 0)) and
+        ((start_lng_deg > 0 and end_lng_deg.to_i < 0) or
+        (start_lng_deg < 0 and end_lng_deg.to_i > 0)) and
         start_lng_deg.abs + end_lng_deg.to_i.abs > 180
       # the difference in longitude striding accross meridian is over
       # 180 degree.




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