diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/cljlib.md | 4 | ||||
| -rw-r--r-- | doc/macros.md | 4 | ||||
| -rw-r--r-- | doc/tests/test.md | 97 |
3 files changed, 4 insertions, 101 deletions
diff --git a/doc/cljlib.md b/doc/cljlib.md index a486bdf..8f6df8b 100644 --- a/doc/cljlib.md +++ b/doc/cljlib.md @@ -1,4 +1,4 @@ -# Cljlib (0.5.1) +# Cljlib (0.5.3) Fennel-cljlib - functions from Clojure's core.clj implemented on top of Fennel. @@ -1258,5 +1258,5 @@ Copyright (C) 2020-2021 Andrey Listopadov License: [MIT](https://gitlab.com/andreyorst/fennel-cljlib/-/raw/master/LICENSE) -<!-- Generated with Fenneldoc v0.1.3 +<!-- Generated with Fenneldoc v0.1.5 https://gitlab.com/andreyorst/fenneldoc --> diff --git a/doc/macros.md b/doc/macros.md index e347e96..6df90fd 100644 --- a/doc/macros.md +++ b/doc/macros.md @@ -1,4 +1,4 @@ -# Macros.fnl (0.5.1) +# Macros.fnl (0.5.3) Macros for Cljlib that implement various facilities from Clojure. **Table of contents** @@ -594,5 +594,5 @@ Copyright (C) 2020-2021 Andrey Listopadov License: [MIT](https://gitlab.com/andreyorst/fennel-cljlib/-/raw/master/LICENSE) -<!-- Generated with Fenneldoc v0.1.3 +<!-- Generated with Fenneldoc v0.1.5 https://gitlab.com/andreyorst/fenneldoc --> diff --git a/doc/tests/test.md b/doc/tests/test.md deleted file mode 100644 index cb97a81..0000000 --- a/doc/tests/test.md +++ /dev/null @@ -1,97 +0,0 @@ -# Test.fnl - -**Table of contents** - -- [`deftest`](#deftest) -- [`testing`](#testing) -- [`assert-eq`](#assert-eq) -- [`assert-ne`](#assert-ne) -- [`assert-is`](#assert-is) -- [`assert-not`](#assert-not) - -## `deftest` -Function signature: - -``` -(deftest name ...) -``` - -Simple way of grouping tests with `name`. - -## `testing` -Function signature: - -``` -(testing description ...) -``` - -Print test `description` and run it. - -## `assert-eq` -Function signature: - -``` -(assert-eq expr1 expr2 msg) -``` - -Like `assert`, except compares results of `expr1` and `expr2` for equality. -Generates formatted message if `msg` is not set to other message. - -### Example -Compare two expressions: - -``` fennel -;; (assert-eq 1 (+1 1)) -;; => runtime error: equality assertion failed -;; => Left: 1 -;; => Right: 3 -``` - -Deep compare values: - -``` fennel -;; (assert-eq [1 {[2 3] [4 5 6]}] [1 {[2 3] [4 5]}]) -;; => runtime error: equality assertion failed -;; => Left: [1 {[2 3] [4 5 6]}] -;; => Right: [1 {[2 3] [4 5]}] -``` - -## `assert-ne` -Function signature: - -``` -(assert-ne expr1 expr2 msg) -``` - -Assert for unequality. Like `assert`, except compares results of -`expr1` and `expr2` for equality. Generates formatted message if -`msg` is not set to other message. Same as [`assert-eq`](#assert-eq). - -## `assert-is` -Function signature: - -``` -(assert-is expr msg) -``` - -Assert `expr` for truth. Same as inbuilt `assert`, except generates more - verbose message if `msg` is not set. - -``` fennel -;; (assert-is (= 1 2 3)) -;; => runtime error: assertion failed for (= 1 2 3) -``` - -## `assert-not` -Function signature: - -``` -(assert-not expr msg) -``` - -Assert `expr` for not truth. Generates more verbose message if - `msg` is not set. Works the same as [`assert-is`](#assert-is). - - -<!-- Generated with Fenneldoc v0.1.3 - https://gitlab.com/andreyorst/fenneldoc --> |