]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_ruby/test/maasha/align/test_match.rb
fixed bad tests in match.rb
[biopieces.git] / code_ruby / test / maasha / align / test_match.rb
index 79df7cd144c1ebdf1fd8205c59beb640547bc6b1..40e84f28acaef8f8a403ea109f2a41e549228bfd 100755 (executable)
@@ -43,32 +43,32 @@ class MatchTest < Test::Unit::TestCase
   end
 
   def test_Match_to_s_returns_correctly
-    assert_equal("q: 1, s: 1, l: 3, s: 0.0",     @match.to_s)
-    assert_equal("q: 1, s: 1, l: 3, s: 0.0 tcg", @match.to_s("atcg"))
+    assert_equal("q: 1 3 s: 1 3 l: 3 s: 0.0",     @match.to_s)
+    assert_equal("q: 1 3 s: 1 3 l: 3 s: 0.0 tcg", @match.to_s("atcg"))
   end
 
   def test_Match_expand_to_left_end_returns_correctly
-    assert_equal("q: 0, s: 0, l: 4, s: 0.0", @match.expand("atcg", "atcg", 0, 0, 3, 3).to_s)
+    assert_equal("q: 0 3 s: 0 3 l: 4 s: 0.0", @match.expand("atcg", "atcg", 0, 0, 3, 3).to_s)
   end
 
   def test_Match_expand_to_left_mismatch_returns_correctly
-    assert_equal("q: 1, s: 1, l: 3, s: 0.0", @match.expand("gtcg", "atcg", 0, 0, 3, 3).to_s)
+    assert_equal("q: 1 3 s: 1 3 l: 3 s: 0.0", @match.expand("gtcg", "atcg", 0, 0, 3, 3).to_s)
   end
 
   def test_Match_expand_to_left_space_beg_returns_correctly
-    assert_equal("q: 1, s: 1, l: 3, s: 0.0", @match.expand("atcg", "atcg", 1, 1, 3, 3).to_s)
+    assert_equal("q: 1 3 s: 1 3 l: 3 s: 0.0", @match.expand("atcg", "atcg", 1, 1, 3, 3).to_s)
   end
 
   def test_Match_expand_to_right_end_returns_correctly
-    assert_equal("q: 0, s: 0, l: 5, s: 0.0", @match.expand("atcga", "atcga", 0, 0, 4, 4).to_s)
+    assert_equal("q: 0 4 s: 0 4 l: 5 s: 0.0", @match.expand("atcga", "atcga", 0, 0, 4, 4).to_s)
   end
 
   def test_Match_expand_to_right_mismatch_returns_correctly
-    assert_equal("q: 1, s: 1, l: 3, s: 0.0", @match.expand("gtcga", "atcgg", 0, 0, 4, 4).to_s)
+    assert_equal("q: 1 3 s: 1 3 l: 3 s: 0.0", @match.expand("gtcga", "atcgg", 0, 0, 4, 4).to_s)
   end
 
   def test_Match_expand_to_right_space_end_returns_correctly
-    assert_equal("q: 1, s: 1, l: 3, s: 0.0", @match.expand("atcga", "atcga", 1, 1, 3, 3).to_s)
+    assert_equal("q: 1 3 s: 1 3 l: 3 s: 0.0", @match.expand("atcga", "atcga", 1, 1, 3, 3).to_s)
   end
 end