diff options
Diffstat (limited to 'src/clojure/contrib/test_contrib/test_trace.clj')
-rw-r--r-- | src/clojure/contrib/test_contrib/test_trace.clj | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/clojure/contrib/test_contrib/test_trace.clj b/src/clojure/contrib/test_contrib/test_trace.clj index 4b283056..dee7122a 100644 --- a/src/clojure/contrib/test_contrib/test_trace.clj +++ b/src/clojure/contrib/test_contrib/test_trace.clj @@ -9,4 +9,8 @@ (deftest test-tracing-a-function-that-calls-itself (let [output (with-out-str (call-myself 1))] (is (re-find #"^TRACE t\d+: (call-myself 1)\nTRACE t\d+: | (call-myself 0)\nTRACE t\d+: | => nil\nTRACE t\d+: => nil$" - output))))
\ No newline at end of file + output)))) + +(deftest dotrace-on-core + (let [output (with-out-str (dotrace [mod] (mod 11 5)))] + (is (re-find #"\(mod 11 5\)" output)))) |