Sha256: 473992a32ac7fcba8dd31d340b65dc0143cad01ec50303ee84a5870db29b8eb8
Contents?: true
Size: 802 Bytes
Versions: 300
Compression:
Stored size: 802 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
300 entries across 300 versions & 1 rubygems