Sha256: 7b88d043f67858bd1a36479a28f5249bf1c492f625df3b13fa4a21e5e5c57b57

Contents?: true

Size: 1.51 KB

Versions: 96

Compression:

Stored size: 1.51 KB

Contents

<?php

require "isogram.php";

class IsogramTest extends PHPUnit_Framework_TestCase
{
    public function testIsogram()
    {
        $this->assertTrue(isIsogram('duplicates'));
    }

    public function testNotIsogram()
    {
        $this->markTestSkipped();
        $this->assertFalse(isIsogram('eleven'));
    }

    public function testMediumLongIsogram()
    {
        $this->markTestSkipped();
        $this->assertTrue(isIsogram('subdermatoglyphic'));
    }

    public function testCaseInsensitive()
    {
        $this->markTestSkipped();
        $this->assertFalse(isIsogram('Alphabet'));
    }

    public function testIsogramWithHyphen()
    {
        $this->markTestSkipped();
        $this->assertTrue(isIsogram('thumbscrew-japingly'));
    }

    public function testIgnoresMultipleHyphens()
    {
        $this->markTestSkipped();
        $this->assertTrue(isIsogram('Hjelmqvist-Gryb-Zock-Pfund-Wax'));
    }

    public function testWorksWithGermanLetters()
    {
        $this->markTestSkipped();
        $this->assertTrue(isIsogram('Heizölrückstoßabdämpfung'));
    }

    public function testIgnoresSpaces()
    {
        $this->markTestSkipped();
        $this->assertFalse(isIsogram('the quick brown fox'));
    }

    public function testIgnoresSpaces2()
    {
        $this->markTestSkipped();
        $this->assertTrue(isIsogram('Emily Jung Schwartzkopf'));
    }

    public function testDuplicateAccentedLetters()
    {
        $this->markTestSkipped();
        $this->assertFalse(isIsogram('éléphant'));
    }
}

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
trackler-2.0.6.40 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.39 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.38 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.37 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.36 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.35 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.34 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.33 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.32 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.31 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.30 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.29 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.28 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.27 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.26 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.25 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.24 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.23 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.22 tracks/php/exercises/isogram/isogram_test.php
trackler-2.0.6.21 tracks/php/exercises/isogram/isogram_test.php