Sha256: 5c69b179bbd1185a3dbbeb1cc365e91c1ea6d3557042cbe43c994b207540eacb

Contents?: true

Size: 1.02 KB

Versions: 235

Compression:

Stored size: 1.02 KB

Contents

(ns pangram-test
  (:require [clojure.test :refer [is deftest]]
            [pangram :refer [pangram?]]))

(deftest empty-sentence
  (is (false? (pangram? ""))))

(deftest lowercase-pangram
  (is (pangram? "the quick brown fox jumps over the lazy dog")))

(deftest missing-character-x
  (is
   (false?
    (pangram? "a quick movement of the enemy will jeopardize five gunboats"))))

(deftest another-missing-character-x
  (is
   (false?
    (pangram? "the quick brown fish jumps over the lazy dog"))))

(deftest with-underscores
  (is (pangram? "the_quick_brown_fox_jumps_over_the_lazy_dog")))

(deftest with-numbers
  (is (pangram? "the 1 quick brown fox jumps over the 2 lazy dogs")))

(deftest missing-letters-replaced-by-numbers
  (is
   (false?
    (pangram? "7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog"))))

(deftest mixed-case-and-punctuation
  (is (pangram? "\"Five quacking Zephyrs jolt my wax bed.\"")))

(deftest non-ascii-characters
  (is (pangram?
       "Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich.")))

Version data entries

235 entries across 235 versions & 1 rubygems

Version Path
trackler-2.2.1.17 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.16 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.15 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.14 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.13 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.12 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.11 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.10 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.9 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.8 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.7 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.6 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.5 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.4 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.3 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.2 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.1 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.1.0 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.0.6 tracks/clojure/exercises/pangram/test/pangram_test.clj
trackler-2.2.0.5 tracks/clojure/exercises/pangram/test/pangram_test.clj