]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_ruby/test/maasha/seq/test_patternmatcher.rb
clean-up of ruby code to remove rake warnings
[biopieces.git] / code_ruby / test / maasha / seq / test_patternmatcher.rb
index 9a7a50eed5db95e820ce86c744214436fcef8ace..03b0926e97e935760e8e8e7213bb88ab7e85e7ce 100755 (executable)
@@ -65,7 +65,7 @@ class TestPatternMatcher < Test::Unit::TestCase
   end
 
   def test_PatternMatcher_match_with_one_mismatch_and_edit_dist_one_returns_correctly
-    m = @p.match("aCcg", pos = 0, edit_distance = 1)
+    m = @p.match("aCcg", 0, 1)
     assert_equal(0, m.pos)
     assert_equal("atcg", m.match)
     assert_equal(3, m.matches)
@@ -76,7 +76,7 @@ class TestPatternMatcher < Test::Unit::TestCase
   end
 
   def test_PatternMatcher_match_with_two_mismatch_and_edit_dist_one_returns_nil
-    assert_nil(@p.match("aGcA", pos = 0, edit_distance = 1))
+    assert_nil(@p.match("aGcA", 0, 1))
   end
 
   def test_PatternMatcher_match_with_one_insertion_and_edit_dist_zero_returns_nil
@@ -84,7 +84,7 @@ class TestPatternMatcher < Test::Unit::TestCase
   end
 
   def test_PatternMatcher_match_with_one_insertion_and_edit_dist_one_returns_correctly
-    m = @p.match("atGcg", pos = 0, edit_distance = 1)
+    m = @p.match("atGcg", 0, 1)
     assert_equal(0, m.pos)
     assert_equal("atcg", m.match)
     assert_equal(4, m.matches)
@@ -95,11 +95,11 @@ class TestPatternMatcher < Test::Unit::TestCase
   end
 
   def test_PatternMatcher_match_with_two_insertions_and_edit_dist_one_returns_nil
-    assert_nil(@p.match("atGcTg", pos = 0, edit_distance = 1))
+    assert_nil(@p.match("atGcTg", 0, 1))
   end
 
   def test_PatternMatcher_match_with_two_insertions_and_edit_dist_two_returns_correctly
-    m = @p.match("atGcTg", pos = 0, edit_distance = 2)
+    m = @p.match("atGcTg", 0, 2)
     assert_equal(0, m.pos)
     assert_equal("atcg", m.match)
     assert_equal(4, m.matches)
@@ -114,7 +114,7 @@ class TestPatternMatcher < Test::Unit::TestCase
   end
 
   def test_PatternMatcher_match_with_one_deletion_and_edit_distance_one_returns_correctly
-    m = @p.match("acg", pos = 0, edit_distance = 1)
+    m = @p.match("acg", 0, 1)
     assert_equal(0, m.pos)
     assert_equal("atcg", m.match)
     assert_equal(3, m.matches)