From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-haskell/chell/metadata.xml | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 dev-haskell/chell/metadata.xml (limited to 'dev-haskell/chell/metadata.xml') diff --git a/dev-haskell/chell/metadata.xml b/dev-haskell/chell/metadata.xml new file mode 100644 index 000000000000..bc57a63871b2 --- /dev/null +++ b/dev-haskell/chell/metadata.xml @@ -0,0 +1,48 @@ + + + + + haskell@gentoo.org + Gentoo Haskell + + + Chell is a simple and intuitive library for automated testing. It natively + supports assertion-based testing, and can use companion libraries + such as @chell-quickcheck@ to support more complex testing strategies. + + An example test suite, which verifies the behavior of artithmetic operators. + + @ + {-\# LANGUAGE TemplateHaskell \#-} + + import Test.Chell + + tests_Math :: Suite + tests_Math = suite \"math\" +   test_Addition +   test_Subtraction + + test_Addition :: Test + test_Addition = assertions \"addition\" $ do +   $expect (equal (2 + 1) 3) +   $expect (equal (1 + 2) 3) + + test_Subtraction :: Test + test_Subtraction = assertions \"subtraction\" $ do +   $expect (equal (2 - 1) 1) +   $expect (equal (1 - 2) (-1)) + + main :: IO () + main = defaultMain [tests_Math] + @ + + @ + $ ghc --make chell-example.hs + $ ./chell-example + PASS: 2 tests run, 2 tests passed + @ + + + use colors in program output + + -- cgit v1.2.3