[Groonga-commit] ranguba/rroonga at 5ccd3c4 [master] test: fix names

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Oct 6 17:52:23 JST 2015


Kouhei Sutou	2015-10-06 17:52:23 +0900 (Tue, 06 Oct 2015)

  New Revision: 5ccd3c44bac83cf53332cfac465427abfde55468
  https://github.com/ranguba/rroonga/commit/5ccd3c44bac83cf53332cfac465427abfde55468

  Message:
    test: fix names

  Modified files:
    test/test-table-group.rb

  Modified: test/test-table-group.rb (+13 -11)
===================================================================
--- test/test-table-group.rb    2015-10-06 17:46:31 +0900 (3e045d1)
+++ test/test-table-group.rb    2015-10-06 17:52:23 +0900 (6b51c6d)
@@ -325,11 +325,12 @@ class TableGroupTest < Test::Unit::TestCase
     def test_max
       grouped_records =****@memos*****("tag",
                                      :calc_target => "priority",
-                                     :calc_types => [:max]).collect do |group|
-        tag = group.key
+                                     :calc_types => [:max])
+      grouped_data = grouped_records.collect do |record|
+        tag = record.key
         [
           tag.key,
-          group.max,
+          record.max,
         ]
       end
 
@@ -338,20 +339,21 @@ class TableGroupTest < Test::Unit::TestCase
                      ["Mroonga", 50],
                      ["Rroonga", 25],
                    ],
-                   grouped_records)
+                   grouped_data)
     end
 
     def test_all_types
       grouped_records =****@memos*****("tag",
                                      :calc_target => "priority",
-                                     :calc_types => [:max, :min, :sum, :average]).collect do |group|
-        tag = group.key
+                                     :calc_types => [:max, :min, :sum, :average])
+      grouped_data = grouped_records.collect do |record|
+        tag = record.key
         [
           tag.key,
-          group.max,
-          group.min,
-          group.sum,
-          group.average.round(3),
+          record.max,
+          record.min,
+          record.sum,
+          record.average.round(3),
         ]
       end
 
@@ -360,7 +362,7 @@ class TableGroupTest < Test::Unit::TestCase
                      ["Mroonga", 50, 10, 85, 28.333],
                      ["Rroonga", 25, -25, 0, 0.0],
                    ],
-                   grouped_records)
+                   grouped_data)
     end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index