Ejemplo n.º 1
0
void test_transcription(const char *dna, const char *expected)
{
   char *rna = to_rna(dna);
   TEST_ASSERT_EQUAL_STRING(expected, rna);
   free(rna);
}
Ejemplo n.º 2
0
void test_failure(const char *dna)
{
   TEST_ASSERT_NULL(to_rna(dna));
}
Ejemplo n.º 3
0
 std::string to_rna(std::string s) {
     for (auto& c : s)
         c = to_rna(c);
     return s;
 }