Sha256: aa45e33bb34f00aedc132d472350cf4eeb90398d8a2fd388c0543549d7a1ba89

Contents?: true

Size: 956 Bytes

Versions: 300

Compression:

Stored size: 956 Bytes

Contents

(ns clock-test
  (:require [clock :refer :all]
            [clojure.test :refer [deftest testing is]]))

(deftest create-clock-test
{{#create}}
  {{#cases}}

  (testing "{{{description}}}"
    (let [test-clock (clock->string (clock {{{hour}}} {{{minute}}}))]
      (is (= test-clock "{{{expected}}}")))){{/cases}}{{/create}})

(deftest add-time-test
{{#add}}
  {{#cases}}

  (testing "{{{description}}}"
    (let [test-clock (clock->string (add-time (clock {{{hour}}} {{{minute}}}) {{{add}}}))]
      (is (= test-clock "{{{expected}}}")))){{/cases}}{{/add}})

(deftest equal-clock-test
{{#equal}}
  {{#cases}}
  (testing "{{{description}}}"
    (let [{{#clock1}}clock1 (clock {{{hour}}} {{{minute}}}){{/clock1}}
          {{#clock2}}clock2 (clock {{{hour}}} {{{minute}}}){{/clock2}}]
      {{#expected}}
      (is (= clock1 clock2))))
      {{/expected}}
      {{^expected}}
      (is (not= clock1 clock2))))
      {{/expected}}
    {{/cases}}
{{/equal}})

Version data entries

300 entries across 300 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.179 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.178 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.177 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.176 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.175 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.174 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.173 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.172 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.171 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.170 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.169 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.167 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.166 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.165 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.164 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.163 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.162 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.161 tracks/clojure/exercises/clock/.meta/clock.mustache
trackler-2.2.1.160 tracks/clojure/exercises/clock/.meta/clock.mustache