Skip to content

Commit

Permalink
Added threading test.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Nov 29, 2023
1 parent 3554f5d commit 632b8b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

* [About](#about-)
* [Build](#build-)
* [Start the Project REPL](#start-the-repl-)
* [Tests](#tests-)
* [Usage](#usage-)
* [License](#license-)
Expand All @@ -32,22 +31,11 @@ convenience wrapper for tomerl, with just a touch of sugar on top.
rebar3 compile
```

# Start the Project REPL [↟](#table-of-contents)

```shell
rebar3 repl
```

or for Erlang:

```shell
rebar3 shell
```

# Tests [↟](#table-of-contents)

```shell
rebar3 ltest
rebar3 as test ltest
```

## Usage [↟](#table-of-contents)
Expand Down
7 changes: 7 additions & 0 deletions test/bombadil-tests.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,10 @@
(is-equal #"d" (bombadil:get data "c" #"d"))
(is-equal #"bleep" (bombadil:get-in data '("a" "b") #"bleep"))
(is-equal #"bloop" (bombadil:get-in data '("c" "d" "e") #"bloop"))))

(deftest threading
(let ((`#(ok ,data) (bombadil:read "priv/testing/deep-sections.toml")))
(is-equal 42
(clj:-> data
(bombadil:assoc-in '("a" "b" "d" "e") 42)
(bombadil:get-in '("a" "b" "d" "e"))))))

0 comments on commit 632b8b1

Please sign in to comment.