File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -102,12 +102,12 @@ will create a new file named `foo.cljc` in the test namespace. The
102102test file will look like the following:
103103
104104```
105- (ns clojure.core-test.{{ns-name}}
105+ (ns clojure.core-test.foo
106106 (:require [clojure.test :as t :refer [deftest testing is are]]
107107 [clojure.core-test.portability #?(:cljs :refer-macros :default :refer) [when-var-exists]]))
108108
109- (when-var-exists clojure.core/{{sym-name}}
110- (deftest test-{{sym-name}}
109+ (when-var-exists clojure.core/foo
110+ (deftest test-foo
111111 ;; `testing` sections are optional, depending on how you want to
112112 ;; structure your tests. If you have a lot of tests and they group
113113 ;; together in subgroups, then use `testing`. The `testing` form
@@ -122,7 +122,7 @@ Simply fill in test assertions and you're off and running.
122122
123123Note: ` new-test ` takes care of converting various characters that
124124might be problematic in file names to expanded versions. For instance
125- "?" is converted to "questionmark " and "* " is converted to
125+ "?" is converted to "qmark " and "* " is converted to
126126"star". Thus, you should always provide the name of the ` clojure.core `
127127symbol you want to test, not the file name or other name. You may need
128128to quote or escape special characters when executing the command in
You can’t perform that action at this time.
0 commit comments