assert_equal(0, @entry.composition["X"])
end
- test "#homopol_max returns 0 with empty sequence" do
- @entry.seq = ""
- assert_equal(0, @entry.homopol_max)
- end
-
- test "#homopol_max returns 0 with nil sequence" do
- @entry.seq = nil
- assert_equal(0, @entry.homopol_max)
- end
-
- test "#homopol_max returns 0 when not found" do
- @entry.seq = "AtTcCcGggGnnNnn"
- assert_equal(0, @entry.homopol_max(6))
- end
-
- test "#homopol_max returns correctly" do
- @entry.seq = "AtTcCcGggGnnNnn"
- assert_equal(5, @entry.homopol_max(3))
- end
-
test "#hard_mask returns correctly" do
@entry.seq = "--AAAANn"
assert_equal(33.33, @entry.hard_mask)