Permalink
Browse files

test for array

  • Loading branch information...
nobu committed May 20, 2010
1 parent 5524278 commit afa6d7edf0fb41f1416f4713c6b279f3a31e04e9
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/test-table.rb
View
@@ -432,6 +432,14 @@ def test_group
bookmark["title"],
bookmark.key]
end)
+ assert_equal([[2, "groonga", "http://groonga.org/"],
+ [1, "Ruby", "http://ruby-lang.org/"]],
+ records.group(%w".bookmark").collect do |record|
+ bookmark = record.key
+ [record.n_sub_records,
+ bookmark["title"],
+ bookmark.key]
+ end)
end
def test_group_with_unknown_key

0 comments on commit afa6d7e

Please sign in to comment.