Skip to content

Commit

Permalink
Update usage example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrmont committed Jan 8, 2025
1 parent 8ead390 commit 1e68212
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@

[![Build Status](https://github.com/pyrmont/testament/workflows/build/badge.svg)](https://github.com/pyrmont/testament/actions?query=workflow%3Abuild)

Testament is a testing library for Janet. It takes inspiration from Joy's
[Tester][] library and Clojure's [clojure.test][] library.
Testament is a testing library for Janet. It takes inspiration Clojure's [clojure.test][] library.

[Tester]: https://github.com/joy-framework/tester
[clojure.test]: https://clojure.github.io/clojure/clojure.test-api.html

## Installation

Add the dependency to your `project.janet` file:

```clojure
```janet
(declare-project
:dependencies ["https://github.com/pyrmont/testament"])
```
Expand All @@ -22,8 +20,8 @@ Add the dependency to your `project.janet` file:
Testament can be used like this:


```clojure
(import testament :prefix "" :exit true)
```janet
(use testament)
(deftest one-plus-one
(is (= 2 (+ 1 1)) "1 + 1 = 2"))
Expand Down

0 comments on commit 1e68212

Please sign in to comment.