-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
750a785
commit 66cb526
Showing
7 changed files
with
51 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
(ns isogram-test | ||
(:require [clojure.test :refer [deftest testing is]] | ||
isogram)) | ||
{% for test_case in test_cases %} | ||
(deftest isogram_test_{{forloop.counter}} | ||
(testing "{{test_case.path|join:" - "}}" | ||
{% if test_case.expected %}(is (isogram/isogram? "{{test_case.input.phrase}}")))) {% else %}(is (not (isogram/isogram? "{{test_case.input.phrase}}")))){% endif %} | ||
{% endfor %} | ||
|
||
{{#test_cases}} | ||
(deftest isogram_test_{{idx}} | ||
(testing "{{description}}" | ||
{{#expected}} | ||
(is (isogram/isogram? "{{input.phrase}}")))) | ||
{{/expected}} | ||
{{^expected}} | ||
(is (not (isogram/isogram? "{{input.phrase}}"))))) | ||
{{/expected}} | ||
|
||
{{/test_cases}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
(ns two-fer-test | ||
(:require [clojure.test :refer [deftest testing is]] | ||
two-fer)) | ||
{% for test_case in test_cases %} | ||
(deftest two-fer_test_{{forloop.counter}} | ||
(testing "{{test_case.path|join:" - "}}" | ||
(is (= "{{test_case.expected}}" (two-fer/two-fer{% if test_case.input.name %} "{{test_case.input.name}}"{% endif %}))))) | ||
{% endfor %} | ||
|
||
{{#test_cases}} | ||
(deftest two-fer_test_{{idx}} | ||
(testing "{{description}}" | ||
(is (= "{{expected}}" (two-fer/two-fer{{#input.name}} "{{input.name}}"{{/input.name}}))))) | ||
|
||
{{/test_cases}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{:paths ["src"] | ||
:deps {org.clojure/data.json {:mvn/version "2.5.1"} | ||
selmer/selmer {:mvn/version "1.12.61"} | ||
pogonos/pogonos {:mvn/version "0.2.1"} | ||
io.github.tonsky/toml-clj {:mvn/version "0.1.0"} | ||
clj-jgit/clj-jgit {:mvn/version "1.1.0"}}} | ||
clj-jgit/clj-jgit {:mvn/version "1.1.0"}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters