Sdaas / clojure-private-fn-test

Testing private functions in Clojure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clojure-private-test

This project shows how to test private functions in Clojure.

Description

The code in core.clj has two functions in the demo.core namespace

  • add : A public function
  • private-add : A private function

The test code in the core_test.clj in a separate namespace demo.core-test

Usage

From the terminal, run

lein test

References

About

Testing private functions in Clojure


Languages

Language:Clojure 100.0%