tasty-kat-0.0.3: Known Answer Tests (KAT) framework for tasty

LicenseMIT
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
PortabilityGood
Safe HaskellNone
LanguageHaskell2010

Test.Tasty.KAT.FileLoader

Contents

Description

extra loaders helpers

Synopsis

Documentation

katLoader Source

Arguments

:: Char

key value separator, e.g. '='

-> String

line comment, e.g. "--" "#"

-> [String]

input lines

-> TestResource (String, String) 

katLoaderSimple :: [String] -> TestResource (String, String) Source

From a simple KAT file, extract

  • lines starting by #, are assumed to be comment

format should be the following:

skipped ..
skipped ..
[group1]

f1= v1
f2= v2
...

f1= v3
f2= v4
...

[group2]
...

generic helpers on TestResource

common helpers on TestResource

common value decoding helpers

associated hierarchy of KAT types

type TestUnit a = [a] Source