Sha256: ddc9c3d4bcb158daa86feddd754e4623c5c4f4e5cd1b1ff3b0803449eaca924f

Contents?: true

Size: 1.21 KB

Versions: 101

Compression:

Stored size: 1.21 KB

Contents

module Test.Main where

import Prelude
import Control.Monad.Eff (Eff)
import Test.Unit.Assert as Assert
import Test.Unit (suite, test)
import Test.Unit.Main (runTest)
import Isogram (isIsogram)

main :: Eff _ Unit
main = runTest do
  suite "Isogram.transform" do

    test "empty string" $
      Assert.equal true
                   (isIsogram "")

    test "isogram with only lower case characters" $
      Assert.equal true
                   (isIsogram "isogram")

    test "word with one duplicated character" $
      Assert.equal false
                   (isIsogram "eleven")

    test "longest reported english isogram" $
      Assert.equal true
                   (isIsogram "subdermatoglyphic")

    test "word with duplicated character in mixed case" $
      Assert.equal false
                   (isIsogram "Alphabet")

    test "hypothetical isogrammic word with hyphen" $
      Assert.equal true
                   (isIsogram "thumbscrew-japingly")

    test "isogram with duplicated non letter character" $
      Assert.equal true
                   (isIsogram "Hjelmqvist-Gryb-Zock-Pfund-Wax")

    test "made-up name that is an isogram" $
      Assert.equal true
                   (isIsogram "Emily Jung Schwartzkopf")

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
trackler-2.2.1.37 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.36 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.35 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.34 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.33 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.32 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.31 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.30 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.29 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.28 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.27 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.26 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.25 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.24 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.23 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.22 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.21 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.20 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.19 tracks/purescript/exercises/isogram/test/Main.purs
trackler-2.2.1.18 tracks/purescript/exercises/isogram/test/Main.purs