Skip to content

Commit

Permalink
sublist: sync tests (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Jan 21, 2025
1 parent aec57b5 commit 092b09a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions exercises/practice/sublist/.meta/generator.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(ns sublist-generator
(:require [hbs.helper :refer [safe-str]]))

(defn transform-test-case [test-case]
(update test-case :expected #(safe-str (keyword %))))
8 changes: 8 additions & 0 deletions exercises/practice/sublist/.meta/generator.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(ns sublist-test
(:require [clojure.test :refer [deftest testing is]]
sublist))
{{#test_cases.sublist}}
(deftest classify_test_{{idx}}
(testing {{description}}
(is (= {{expected}} (sublist/classify {{input.listOne}} {{input.listTwo}})))))
{{/test_cases.sublist~}}

0 comments on commit 092b09a

Please sign in to comment.