[Groonga-commit] ranguba/rroonga at fe7edbf [master] test: add "n_" prefix for "the number of" value column

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Oct 19 19:50:47 JST 2014


Kouhei Sutou	2014-10-19 19:50:47 +0900 (Sun, 19 Oct 2014)

  New Revision: fe7edbf7ee631883e230d6610aad9b7f0d77aaea
  https://github.com/ranguba/rroonga/commit/fe7edbf7ee631883e230d6610aad9b7f0d77aaea

  Message:
    test: add "n_" prefix for "the number of" value column

  Modified files:
    test/test-fix-size-column.rb

  Modified: test/test-fix-size-column.rb (+14 -14)
===================================================================
--- test/test-fix-size-column.rb    2014-10-19 19:49:06 +0900 (f7665cc)
+++ test/test-fix-size-column.rb    2014-10-19 19:50:47 +0900 (85f57c1)
@@ -31,47 +31,47 @@ class FixSizeColumnTest < Test::Unit::TestCase
       @bookmarks = Groonga::Array.create(:name => "Bookmarks",
                                          :path => @bookmarks_path.to_s)
 
-      @viewed_column_path = @columns_dir + "viewed"
-      @viewed =****@bookm*****_column("viewed", "Int32",
-                                         :path => @viewed_column_path.to_s)
+      @n_viewed_column_path = @columns_dir + "n_viewed"
+      @n_viewed =****@bookm*****_column("n_viewed", "Int32",
+                                           :path => @n_viewed_column_path.to_s)
     end
 
     def test_index?
-      assert_not_predicate(@viewed, :index?)
+      assert_not_predicate(@n_viewed, :index?)
     end
 
     def test_vector?
-      assert_not_predicate(@viewed, :vector?)
+      assert_not_predicate(@n_viewed, :vector?)
     end
 
     def test_scalar?
-      assert_predicate(@viewed, :scalar?)
+      assert_predicate(@n_viewed, :scalar?)
     end
 
     def test_inspect
       assert_equal("#<Groonga::FixSizeColumn " +
-                   "id: <#{@viewed.id}>, " +
-                   "name: <Bookmarks.viewed>, " +
-                   "path: <#{@viewed_column_path}>, " +
+                   "id: <#{@n_viewed.id}>, " +
+                   "name: <Bookmarks.n_viewed>, " +
+                   "path: <#{@n_viewed_column_path}>, " +
                    "domain: <Bookmarks>, " +
                    "range: <Int32>, " +
                    "flags: <KEY_INT>" +
                    ">",
-                   @viewed.inspect)
+                   @n_viewed.inspect)
     end
 
     def test_domain
-      assert_equal(@bookmarks, @viewed.domain)
+      assert_equal(@bookmarks, @n_viewed.domain)
     end
 
     def test_table
-      assert_equal(@bookmarks, @viewed.table)
+      assert_equal(@bookmarks, @n_viewed.table)
     end
 
     def test_assign_int_after_string
       assert_nothing_raised do
-        @bookmarks.add(:viewed => "100")
-        @bookmarks.add(:viewed => 100)
+        @bookmarks.add(:n_viewed => "100")
+        @bookmarks.add(:n_viewed => 100)
       end
     end
   end
-------------- next part --------------
HTML����������������������������...
Télécharger 



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