Skip to content

Commit

Permalink
Use assert_equal for insert#size_diff unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbarton committed Aug 10, 2011
1 parent 843056c commit 1e4c639
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_insert.rb
Expand Up @@ -45,17 +45,17 @@ class TestInsert < Test::Unit::TestCase

should "return a negative diff for a sequence smaller than insert site" do
@insert.raw_sequence 'TT'
assert(@insert.size_diff,-1)
assert_equal(@insert.size_diff,-1)
end

should "return 0 for a sequence equal to the insert site" do
@insert.raw_sequence 'TT'
assert(@insert.size_diff,0)
@insert.raw_sequence 'TTT'
assert_equal(@insert.size_diff,0)
end

should "return a positive diff for a sequence larger than insert site" do
@insert.raw_sequence 'TTTT'
assert(@insert.size_diff,1)
assert_equal(@insert.size_diff,1)
end

end
Expand Down

0 comments on commit 1e4c639

Please sign in to comment.