Skip to content

marcesquerra/IdrisTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple testing library for Idris

A simple example:

import Idristest

export
runTests : IO ()
runTests = run (
  "This is a collection of tests" >> [
    "Checking the length" >> (length "hello") must beEqualTo 5,

    "Some subtests are required" >> [
      "Testing some boolean" >> True must beTrue,
      "... and some more" >> (not True) must beFalse,
      "also wrapping an IO" >> (pure True) evaluated must beTrue
    ],

    "What about some IO entries?" >> 5 must beEqualTo (3 + 2),
    "And some other properties" >> 5 must beOdd ,
    "but then again..." >> 6 must beEven
  ]
)

About

Testing library for Idris

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published