Sha256: 14ecdb96830988b8c69e31267e71e426fb36bab8db729386e9fdfd2d8ab8ec44
Contents?: true
Size: 803 Bytes
Versions: 84
Compression:
Stored size: 803 Bytes
Contents
<?php require "nucleotide-count.php"; class NucleotideCountTest extends \PHPUnit_Framework_TestCase { public function testEmptyDNASequence() { $this->assertSame([ 'a' => 0, 'c' => 0, 't' => 0, 'g' => 0, ], nucleotideCount('')); } public function testRepetitiveDNASequence() { $this->assertSame([ 'a' => 9, 'c' => 0, 't' => 0, 'g' => 0, ], nucleotideCount('AAAAAAAAA')); } public function testDNASequence() { $this->assertSame([ 'a' => 20, 'c' => 12, 't' => 21, 'g' => 17, ], nucleotideCount('AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC')); } }
Version data entries
84 entries across 84 versions & 1 rubygems