Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

test for array

  • Loading branch information...
commit afa6d7edf0fb41f1416f4713c6b279f3a31e04e9 1 parent 5524278
Nobuyoshi Nakada authored May 20, 2010

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  test/test-table.rb
8  test/test-table.rb
@@ -432,6 +432,14 @@ def test_group
432 432
                     bookmark["title"],
433 433
                     bookmark.key]
434 434
                  end)
  435
+    assert_equal([[2, "groonga", "http://groonga.org/"],
  436
+                  [1, "Ruby", "http://ruby-lang.org/"]],
  437
+                 records.group(%w".bookmark").collect do |record|
  438
+                   bookmark = record.key
  439
+                   [record.n_sub_records,
  440
+                    bookmark["title"],
  441
+                    bookmark.key]
  442
+                 end)
435 443
   end
436 444
 
437 445
   def test_group_with_unknown_key

0 notes on commit afa6d7e

Please sign in to comment.
Something went wrong with that request. Please try again.