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.180 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.179 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.178 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.177 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.176 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.175 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.174 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.173 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.172 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.171 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.170 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.169 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.167 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.166 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.165 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.164 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.163 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.162 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.161 tracks/nim/exercises/isogram/isogram_test.nim
trackler-2.2.1.160 tracks/nim/exercises/isogram/isogram_test.nim