Navigation Menu

Skip to content

Commit

Permalink
test: indent
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 14, 2015
1 parent 02082ab commit e2cd1c4
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions test/test-index-column.rb
Expand Up @@ -503,44 +503,44 @@ def test_adjust

class EstimateSizeTest < self
sub_test_case "token ID" do
setup
def setup_schema
Groonga::Schema.define do |schema|
schema.create_table("Articles") do |table|
table.text("content")
end
setup
def setup_schema
Groonga::Schema.define do |schema|
schema.create_table("Articles") do |table|
table.text("content")
end

schema.create_table("Terms",
:type => :hash,
:key_type => "ShortText",
:default_tokenizer => "TokenBigram",
:normalizer => "NormalizerAuto") do |table|
table.index("Articles.content",
:name => "articles_content",
:with_position => true,
:with_section => true)
schema.create_table("Terms",
:type => :hash,
:key_type => "ShortText",
:default_tokenizer => "TokenBigram",
:normalizer => "NormalizerAuto") do |table|
table.index("Articles.content",
:name => "articles_content",
:with_position => true,
:with_section => true)
end
end
end

@articles = Groonga["Articles"]
@terms = Groonga["Terms"]
@index = Groonga["Terms.articles_content"]
end
@articles = Groonga["Articles"]
@terms = Groonga["Terms"]
@index = Groonga["Terms.articles_content"]
end

setup
def setup_data
@articles.add(:content => "Groonga is fast")
@articles.add(:content => "Rroonga is fast")
@articles.add(:content => "Mroonga is fast")
end
setup
def setup_data
@articles.add(:content => "Groonga is fast")
@articles.add(:content => "Rroonga is fast")
@articles.add(:content => "Mroonga is fast")
end

def test_id
assert_equal(7, @index.estimate_size(@terms["fast"].id))
end
def test_id
assert_equal(7, @index.estimate_size(@terms["fast"].id))
end

def test_record
assert_equal(7, @index.estimate_size(@terms["fast"]))
end
def test_record
assert_equal(7, @index.estimate_size(@terms["fast"]))
end
end
end
end

0 comments on commit e2cd1c4

Please sign in to comment.