Sha256: 16bb57e55ee600435cbe0a685a649a0219238a8af383d167f88525ab708c45ab

Contents?: true

Size: 1.51 KB

Versions: 300

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

300 entries across 300 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.179 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.178 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.177 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.176 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.175 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.174 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.173 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.172 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.171 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.170 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.169 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.167 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.166 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.165 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.164 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.163 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.162 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.161 tracks/php/exercises/isogram/isogram_test.php
trackler-2.2.1.160 tracks/php/exercises/isogram/isogram_test.php