Name : ghc-easytest
| |
Version : 0.2
| Vendor : obs://build_opensuse_org/devel:languages:haskell
|
Release : lp150.3.1
| Date : 2018-10-10 18:08:40
|
Group : Development/Libraries/Haskell
| Source RPM : ghc-easytest-0.2-lp150.3.1.src.rpm
|
Size : 0.34 MB
| |
Packager : (none)
| |
Summary : Simple, expressive testing library
|
Description :
EasyTest is a simple testing toolkit, meant to replace most uses of QuickCheck, SmallCheck, HUnit, and frameworks like Tasty, etc. Here\'s an example usage:
> module Main where > > import EasyTest > import Control.Applicative > import Control.Monad > > suite :: Test () > suite = tests > [ scope \"addition.ex1\" $ expect (1 + 1 == 2) > , scope \"addition.ex2\" $ expect (2 + 3 == 5) > , scope \"list.reversal\" . fork $ do > -- generate lists from size 0 to 10, of Ints in (0,43) > -- shorthand: listsOf [0..10] (int\' 0 43) > ns < - [0..10] `forM` n -> replicateM n (int\' 0 43) > ns `forM_` ns -> expect (reverse (reverse ns) == ns) > -- equivalent to `scope \"addition.ex3\"` > , scope \"addition\" . scope \"ex3\" $ expect (3 + 3 == 6) > , scope \"always passes\" $ do > note \"I\'m running this test, even though it always passes!\" > ok -- like `pure ()`, but records a success result > , scope \"failing test\" $ crash \"oh noes!!\" ] > > -- NB: `run suite` would run all tests, but we only run > -- tests whose scopes are prefixed by \"addition\" > main = runOnly \"addition\" suite
This generates the output:
> Randomness seed for this run is 5104092164859451056 > Raw test output to follow ... > ------------------------------------------------------------ > OK addition.ex1 > OK addition.ex2 > OK addition.ex3 > ------------------------------------------------------------ > ✅ 3 tests passed, no failures! 👍 🎉 The idea here is to write tests with ordinary Haskell code, with control flow explicit and under programmer control.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/haskell:/lts:/12/openSUSE_Leap_15.0/x86_64 |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
ghc-easytest
ghc-easytest(x86-64)
libHSeasytest-0.2-DYZHil1WlwrF07i0YZE0lo-ghc8.4.3.so()(64bit)
Requires :