Kouhei Sutou
null+****@clear*****
Sun Oct 19 19:49:06 JST 2014
Kouhei Sutou 2014-10-19 19:49:06 +0900 (Sun, 19 Oct 2014) New Revision: af15ee4a7b285b72db1e7392a9773c07356b7091 https://github.com/ranguba/rroonga/commit/af15ee4a7b285b72db1e7392a9773c07356b7091 Message: test: indent Modified files: test/test-fix-size-column.rb Modified: test/test-fix-size-column.rb (+43 -43) =================================================================== --- test/test-fix-size-column.rb 2014-10-19 19:48:45 +0900 (c160390) +++ test/test-fix-size-column.rb 2014-10-19 19:49:06 +0900 (f7665cc) @@ -21,60 +21,60 @@ class FixSizeColumnTest < Test::Unit::TestCase end class OperationTest < self - def setup - super - setup_bookmarks_table - end + def setup + super + setup_bookmarks_table + end - def setup_bookmarks_table - @bookmarks_path = @tables_dir + "bookmarks" - @bookmarks = Groonga::Array.create(:name => "Bookmarks", - :path => @bookmarks_path.to_s) + def setup_bookmarks_table + @bookmarks_path = @tables_dir + "bookmarks" + @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) - end + @viewed_column_path = @columns_dir + "viewed" + @viewed =****@bookm*****_column("viewed", "Int32", + :path => @viewed_column_path.to_s) + end - def test_index? - assert_not_predicate(@viewed, :index?) - end + def test_index? + assert_not_predicate(@viewed, :index?) + end - def test_vector? - assert_not_predicate(@viewed, :vector?) - end + def test_vector? + assert_not_predicate(@viewed, :vector?) + end - def test_scalar? - assert_predicate(@viewed, :scalar?) - end + def test_scalar? + assert_predicate(@viewed, :scalar?) + end - def test_inspect - assert_equal("#<Groonga::FixSizeColumn " + - "id: <#{@viewed.id}>, " + - "name: <Bookmarks.viewed>, " + - "path: <#{@viewed_column_path}>, " + - "domain: <Bookmarks>, " + - "range: <Int32>, " + - "flags: <KEY_INT>" + - ">", - @viewed.inspect) - end + def test_inspect + assert_equal("#<Groonga::FixSizeColumn " + + "id: <#{@viewed.id}>, " + + "name: <Bookmarks.viewed>, " + + "path: <#{@viewed_column_path}>, " + + "domain: <Bookmarks>, " + + "range: <Int32>, " + + "flags: <KEY_INT>" + + ">", + @viewed.inspect) + end - def test_domain - assert_equal(@bookmarks, @viewed.domain) - end + def test_domain + assert_equal(@bookmarks, @viewed.domain) + end - def test_table - assert_equal(@bookmarks, @viewed.table) - end + def test_table + assert_equal(@bookmarks, @viewed.table) + end - def test_assign_int_after_string - assert_nothing_raised do - @bookmarks.add(:viewed => "100") - @bookmarks.add(:viewed => 100) + def test_assign_int_after_string + assert_nothing_raised do + @bookmarks.add(:viewed => "100") + @bookmarks.add(:viewed => 100) + end end end - end class TimeTest < self class IntegerTest < self -------------- next part -------------- HTML����������������������������...下載