X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=code_ruby%2Ftest%2Fmaasha%2Falign%2Ftest_match.rb;h=40e84f28acaef8f8a403ea109f2a41e549228bfd;hb=723c21eda3eccc2af806d925ac57bf5fb367e6c6;hp=79df7cd144c1ebdf1fd8205c59beb640547bc6b1;hpb=172f31c83a6de7f5af893cae7fe5d39714d50ff7;p=biopieces.git diff --git a/code_ruby/test/maasha/align/test_match.rb b/code_ruby/test/maasha/align/test_match.rb index 79df7cd..40e84f2 100755 --- a/code_ruby/test/maasha/align/test_match.rb +++ b/code_ruby/test/maasha/align/test_match.rb @@ -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