diff options
| author | Andrey Orst <andreyorst@gmail.com> | 2021-01-20 22:14:31 +0300 |
|---|---|---|
| committer | Andrey Orst <andreyorst@gmail.com> | 2021-01-20 22:14:31 +0300 |
| commit | 156dba1a8d6af3bb2088bfc7cec851f2afe38024 (patch) | |
| tree | 578fb3e5fea9b0a8fe0729562215fcac79a80b28 /tests/test.fnl | |
| parent | 92812d03922fd4c3ba85364b59e63236e7cfcd8a (diff) | |
fix: update docs
preparing to set up docstring validation
Diffstat (limited to 'tests/test.fnl')
| -rw-r--r-- | tests/test.fnl | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/tests/test.fnl b/tests/test.fnl index 143b749..f1d6371 100644 --- a/tests/test.fnl +++ b/tests/test.fnl @@ -42,23 +42,19 @@ Generates formatted message if `msg` is not set to other message. Compare two expressions: ``` fennel ->> (assert-eq 1 (+1 1)) -runtime error: equality assertion failed - Left: 1 - Right: 3 +;; (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-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]}] ```" `(let [left# ,expr1 right# ,expr2 @@ -89,8 +85,8 @@ runtime error: equality assertion failed verbose message if `msg` is not set. ``` fennel ->> (assert-is (= 1 2 3)) -runtime error: assertion failed for (= 1 2 3) +;; (assert-is (= 1 2 3)) +;; => runtime error: assertion failed for (= 1 2 3) ```" `(assert ,expr (.. "assertion failed for " |