Navigation Menu

Skip to content

Commit

Permalink
test: use meaningful name
Browse files Browse the repository at this point in the history
END_OF_INSPECT ->
INSPECTED

GitHub: #65
  • Loading branch information
Masafumi Yokoyama committed Apr 8, 2015
1 parent c2c7162 commit 6078566
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test-operator.rb
Expand Up @@ -30,7 +30,7 @@ def setup_expression

def test_constant
@expression.append_operation(Groonga::Operator::REGEXP, 2)
assert_equal(<<-END_OF_INSPECT.chomp, @expression.inspect)
assert_equal(<<-INSPECTED.chomp, @expression.inspect)
#<Groonga::Expression
vars:{
},
Expand All @@ -39,12 +39,12 @@ def test_constant
1:<push n_args:1, flags:0, modify:0, value:93>,
2:<regexp n_args:2, flags:0, modify:0, value:(NULL)>
}>
END_OF_INSPECT
INSPECTED
end

def test_name
@expression.append_operation("regexp", 2)
assert_equal(<<-END_OF_INSPECT.chomp, @expression.inspect)
assert_equal(<<-INSPECTED.chomp, @expression.inspect)
#<Groonga::Expression
vars:{
},
Expand All @@ -53,7 +53,7 @@ def test_name
1:<push n_args:1, flags:0, modify:0, value:93>,
2:<regexp n_args:2, flags:0, modify:0, value:(NULL)>
}>
END_OF_INSPECT
INSPECTED
end
end
end

0 comments on commit 6078566

Please sign in to comment.