Sha256: 3ead369ba0063a1380e4a849ed52187b4c1703917876b205719fb371f4065aa4

Contents?: true

Size: 1.28 KB

Versions: 300

Compression:

Stored size: 1.28 KB

Contents

<?php

require "trinary.php";

class TrinaryTest extends PHPUnit\Framework\TestCase
{
    public function test1IsDecimal1()
    {
        $this->assertEquals(1, toDecimal('1'));
    }

    public function test2IsDecimal2()
    {
        $this->markTestSkipped();
        $this->assertEquals(2, toDecimal('2'));
    }

    public function test10IsDecimal3()
    {
        $this->markTestSkipped();
        $this->assertEquals(3, toDecimal('10'));
    }

    public function test11IsDecimal4()
    {
        $this->markTestSkipped();
        $this->assertEquals(4, toDecimal('11'));
    }

    public function test100IsDecimal9()
    {
        $this->markTestSkipped();
        $this->assertEquals(9, toDecimal('100'));
    }

    public function test112IsDecimal14()
    {
        $this->markTestSkipped();
        $this->assertEquals(14, toDecimal('112'));
    }

    public function test222IsDecimal26()
    {
        $this->markTestSkipped();
        $this->assertEquals(26, toDecimal('222'));
    }

    public function test1122000120IsDecimal32091()
    {
        $this->markTestSkipped();
        $this->assertEquals(32091, toDecimal('1122000120'));
    }

    public function testInvalidTrinaryIsDecimal0()
    {
        $this->markTestSkipped();
        $this->assertSame(0, toDecimal('13201'));
    }
}

Version data entries

300 entries across 300 versions & 1 rubygems

Version Path
trackler-2.0.8.36 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.35 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.34 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.33 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.32 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.31 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.30 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.29 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.28 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.27 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.26 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.24 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.23 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.22 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.21 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.20 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.19 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.18 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.17 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.8.16 tracks/php/exercises/trinary/trinary_test.php