[Groonga-commit] ranguba/rroonga at d639960 [master] test: check assigned value instead of checking not raised

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Oct 19 20:01:18 JST 2014


Kouhei Sutou	2014-10-19 20:01:18 +0900 (Sun, 19 Oct 2014)

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

  Message:
    test: check assigned value instead of checking not raised

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

  Modified: test/test-fix-size-column.rb (+4 -3)
===================================================================
--- test/test-fix-size-column.rb    2014-10-19 19:50:47 +0900 (85f57c1)
+++ test/test-fix-size-column.rb    2014-10-19 20:01:18 +0900 (de34071)
@@ -68,10 +68,11 @@ class FixSizeColumnTest < Test::Unit::TestCase
       assert_equal(@bookmarks, @n_viewed.table)
     end
 
-    def test_assign_int_after_string
-      assert_nothing_raised do
+    class AssignTest < self
+      def test_different_types
         @bookmarks.add(:n_viewed => "100")
-        @bookmarks.add(:n_viewed => 100)
+        record =****@bookm*****(:n_viewed => 101)
+        assert_equal(101, record.n_viewed)
       end
     end
   end
-------------- next part --------------
HTML����������������������������...
Download 



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