From 49a41918bd96cbac4a83a098b2458e212a0be0a8 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Tue, 14 Jan 2025 09:24:09 +0100 Subject: [PATCH] isbn-verifier: add generator [no important files changed] --- exercises/practice/isbn-verifier/.meta/generator.tpl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 exercises/practice/isbn-verifier/.meta/generator.tpl diff --git a/exercises/practice/isbn-verifier/.meta/generator.tpl b/exercises/practice/isbn-verifier/.meta/generator.tpl new file mode 100644 index 00000000..3cbda761 --- /dev/null +++ b/exercises/practice/isbn-verifier/.meta/generator.tpl @@ -0,0 +1,8 @@ +(ns isbn-verifier-test + (:require [clojure.test :refer [deftest testing is]] + isbn-verifier)) +{{#test_cases.isValid}} +(deftest isbn?_test_{{idx}} + (testing {{string description}} + (is ({{#expected~}}true?{{else}}false?{{/expected}} (isbn-verifier/isbn? {{string input.isbn}}))))) +{{/test_cases.isValid~}}