Sha256: 6f8be67df49cddf21e766d1df07bc5dbdebdcadc2069725aca5b12e8bb739467

Contents?: true

Size: 1.28 KB

Versions: 96

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

96 entries across 96 versions & 1 rubygems

Version Path
trackler-2.0.6.0 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.18 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.17 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.16 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.15 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.14 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.13 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.12 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.11 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.10 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.9 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.8 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.7 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.6 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.5 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.4 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.3 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.2 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.1 tracks/php/exercises/trinary/trinary_test.php
trackler-2.0.5.0 tracks/php/exercises/trinary/trinary_test.php