diff --git a/nucleotide-count/example.cpp b/nucleotide-count/example.cpp index 27a8fc9d..0f354d4c 100644 --- a/nucleotide-count/example.cpp +++ b/nucleotide-count/example.cpp @@ -14,9 +14,6 @@ counter::counter(std::string const& sequence) int counter::count(char nucleotide) const { - if (nucleotide == 'U') { - return 0; - } const auto it = counts_.find(nucleotide); if (it == counts_.end()) { throw std::invalid_argument("Unknown nucleotide"); diff --git a/nucleotide-count/nucleotide_count_test.cpp b/nucleotide-count/nucleotide_count_test.cpp index ef406367..73f07303 100644 --- a/nucleotide-count/nucleotide_count_test.cpp +++ b/nucleotide-count/nucleotide_count_test.cpp @@ -67,13 +67,6 @@ BOOST_AUTO_TEST_CASE(counts_a_nucleotide_only_once) BOOST_REQUIRE_EQUAL(2, dna.count('T')); } -BOOST_AUTO_TEST_CASE(has_no_uracil) -{ - const dna::counter dna("GGTTGG"); - - BOOST_REQUIRE_EQUAL(0, dna.count('U')); -} - BOOST_AUTO_TEST_CASE(validates_nucleotides) { const dna::counter dna("GGTTGG");