Skip to content

Commit

Permalink
update to Idris 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrolarus committed Dec 21, 2021
1 parent 2dbaa8a commit 64eafbf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A testing framework for Idris 2.

## Installation

At least version `0.3.0` of the Idris 2 compiler is required.
At least version `0.5.0` of the Idris 2 compiler is required.

```sh
idris2 --install tester.ipkg
Expand Down Expand Up @@ -55,4 +55,4 @@ All code is licensed under the [MPL-2.0](LICENSES/MPL-2.0.txt).
All files that are not properly copyrightable are in the public domain, using
the [CC0 license](LICENSES/CC0-1.0.txt).

This project aims to be [REUSE compliant](https://reuse.software/).
This project aims to be [REUSE compliant](https://reuse.software/).
4 changes: 2 additions & 2 deletions src/Tester.idr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module Tester

import public Control.Monad.Either
import Data.Strings
import Data.String
import Control.ANSI

||| A function which can report test failures.
Expand Down Expand Up @@ -84,4 +84,4 @@ assert cond =
||| Cause a test failure with a message.
public export
throw : (msg : String) -> TestFunc a
throw = throwE
throw = throwE
2 changes: 1 addition & 1 deletion src/Tester/Runner.idr
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runTests tests = do
let diff = longestDesc `minus` len
in pack $ replicate diff ' '

res <- for tests \t => do
res <- for tests $ \t => do
putStr $ t.description ++ padding (length t.description) ++ " ... "
case !(runEitherT t.run) of
Left err => do
Expand Down
4 changes: 2 additions & 2 deletions tester.ipkg
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
-- SPDX-License-Identifier: CC0-1.0

package tester
version = 0.1.0
version = 0.1.1

depends = contrib

modules =
Tester,
Tester.Runner

sourcedir = "src"
sourcedir = "src"

0 comments on commit 64eafbf

Please sign in to comment.