Sha256: 7eb767147b566a84c914caf25ee1142028a6447ac3c20efb3b6456a59996f9ab

Contents?: true

Size: 869 Bytes

Versions: 41

Compression:

Stored size: 869 Bytes

Contents

import unittest

import isogram

suite "Isogram":

  test "empty string":
    check isIsogram("") == true
    
  test "isogram with only lower case characters":
    check isIsogram("isogram") == true
    
  test "word with one duplicated character":
    check isIsogram("eleven") == false
    
  test "longest reported english isogram":
    check isIsogram("subdermatoglyphic") == true
    
  test "word with duplicated character in mixed case":
    check isIsogram("Alphabet") == false
    
  test "hypothetical isogrammic word with hyphen":
    check isIsogram("thumbscrew-japingly") == true
    
  test "isogram with duplicated hyphen":
    check isIsogram("six-year-old") == true

  test "made up name that is an isogram":
    check isIsogram("Emily Jung Schwartzkopf") == true

  test "duplicated character in the middle":
    check isIsogram("accentor") == false

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.158 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.157 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.156 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.155 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.154 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.153 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.152 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.151 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.150 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.149 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.148 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.147 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.146 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.145 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.144 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.143 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.142 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.141 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.140 tracks/nim/exercises/isogram/isogram_test.nim