Skip to content

Commit

Permalink
change: uuid and testdox added in test file for rna-transcription
Browse files Browse the repository at this point in the history
  • Loading branch information
fejan-groovy committed Jun 9, 2024
1 parent fcec2b8 commit 2398fef
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions exercises/practice/rna-transcription/RnaTranscriptionTest.php
Original file line number Diff line number Diff line change
@@ -1,32 +1,55 @@
<?php

/**
* @uuid 123e4567-e89b-12d3-a456-426614174000
*/
class RnaTranscriptionTest extends PHPUnit\Framework\TestCase
{
public static function setUpBeforeClass(): void
{
require_once 'RnaTranscription.php';
}

/**
* @testdox It transcribes guanine to cytosine
* @uuid 123e4567-e89b-12d3-a456-426614174001
*/
public function testTranscribesGuanineToCytosine(): void
{
$this->assertSame('G', toRna('C'));
}

/**
* @testdox It transcribes cytosine to guanine
* @uuid 123e4567-e89b-12d3-a456-426614174002
*/
public function testTranscribesCytosineToGuanine(): void
{
$this->assertSame('C', toRna('G'));
}

/**
* @testdox It transcribes thymine to adenine
* @uuid 123e4567-e89b-12d3-a456-426614174003
*/
public function testTranscribesThymineToAdenine(): void
{
$this->assertSame('A', toRna('T'));
}

/**
* @testdox It transcribes adenine to uracil
* @uuid 123e4567-e89b-12d3-a456-426614174004
*/
public function testTranscribesAdenineToUracil(): void
{
$this->assertSame('U', toRna('A'));
}

/**
* @testdox It transcribes all occurrences in a given sequence
* @uuid 123e4567-e89b-12d3-a456-426614174005
*/
public function testTranscribesAllOccurrencesOne(): void
{
$this->assertSame('UGCACCAGAAUU', toRna('ACGTGGTCTTAA'));
Expand Down

0 comments on commit 2398fef

Please sign in to comment.