Sha256: 23c89743986e86af0004d378aced988f710591f56a7adfceb5ff517ff4a1ae9e

Contents?: true

Size: 1.13 KB

Versions: 127

Compression:

Stored size: 1.13 KB

Contents

(ql:quickload "lisp-unit")
#-xlisp-test (load "isogram")

(defpackage #:isogram-test
  (:use #:common-lisp #:lisp-unit))

(in-package #:isogram-test)

(define-test empty-string
  (assert-true (isogram:is-isogram "")))

(define-test isogram-with-only-lower-case-characters
  (assert-true (isogram:is-isogram "isogram")))

(define-test word-with-one-duplicated-character
  (assert-false (isogram:is-isogram "eleven")))

(define-test longest-reported-english-isogram
  (assert-true (isogram:is-isogram "subdermatoglyphic")))

(define-test word-with-duplicated-character-in-mixed-case
  (assert-false (isogram:is-isogram "Alphabet")))

(define-test hypothetical-isogrammic-word-with-hyphen
  (assert-true (isogram:is-isogram "thumbscrew-japingly")))

(define-test isogram-with-duplicated-hyphen
  (assert-true (isogram:is-isogram "six-year-old")))

(define-test made-up-name-that-is-an-isogam
  (assert-true (isogram:is-isogram "Emily Jung Schwartzkopf")))

(define-test duplicated-character-in-the-middle
  (assert-false (isogram:is-isogram "accentor")))

#-xlisp-test
(let ((*print-errors* t)
      (*print-failures* t))
  (run-tests :all :isogram-test))

Version data entries

127 entries across 127 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.97 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.96 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.95 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.94 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.93 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.92 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.91 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.90 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.89 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.88 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.87 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.86 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.85 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.84 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.83 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.82 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.81 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.80 tracks/common-lisp/exercises/isogram/isogram-test.lisp
trackler-2.2.1.79 tracks/common-lisp/exercises/isogram/isogram-test.lisp