Safe Haskell | None |
---|---|
Language | Haskell2010 |
Graphics.Text.Font.Choose.Internal.Test
Description
Internal C routines which need to be QuickCheck tested.
Synopsis
- type RoundTrip = CString -> Int -> Ptr Int -> CString
- roundtrip :: MessagePack a => RoundTrip -> a -> Maybe a
- testStrSet :: RoundTrip
- testCharSet :: RoundTrip
- testLangSet :: RoundTrip
- testRange :: RoundTrip
- testMatrix :: RoundTrip
- testValue :: RoundTrip
- testPattern :: RoundTrip
- testFontSet :: RoundTrip
Documentation
type RoundTrip = CString -> Int -> Ptr Int -> CString Source #
A C test function which transcodes data into & out of FontConfig datastructures.
roundtrip :: MessagePack a => RoundTrip -> a -> Maybe a Source #
Test a roundtrip function, the output should be equal to the input (wrapped in a Maybe type).
testStrSet :: RoundTrip Source #
C test function for StrSet type.
testCharSet :: RoundTrip Source #
C test function for CharSet type.
testLangSet :: RoundTrip Source #
C test function for LangSet type.
testMatrix :: RoundTrip Source #
C test function for Matrix type.
testPattern :: RoundTrip Source #
C test function for Pattern type.
testFontSet :: RoundTrip Source #
C test function for FontSet type.