math-programming-tests-0.3.0: Utility functions for testing implementations of the math-programming library.

Safe HaskellNone
LanguageHaskell2010

Math.Programming.Tests.LP

Documentation

makeLPTests Source #

Arguments

:: (PrintfArg (Numeric m), RealFrac (Numeric m), MonadIO m, LPMonad m) 
=> (m () -> IO ())

The runner for the API being tested.

-> TestTree

The resulting test suite.

data Food Source #

Constructors

Corn 
Milk 
Bread 
Instances
Eq Food Source # 
Instance details

Defined in Math.Programming.Tests.LP

Methods

(==) :: Food -> Food -> Bool #

(/=) :: Food -> Food -> Bool #

Ord Food Source # 
Instance details

Defined in Math.Programming.Tests.LP

Methods

compare :: Food -> Food -> Ordering #

(<) :: Food -> Food -> Bool #

(<=) :: Food -> Food -> Bool #

(>) :: Food -> Food -> Bool #

(>=) :: Food -> Food -> Bool #

max :: Food -> Food -> Food #

min :: Food -> Food -> Food #

Read Food Source # 
Instance details

Defined in Math.Programming.Tests.LP

Show Food Source # 
Instance details

Defined in Math.Programming.Tests.LP

Methods

showsPrec :: Int -> Food -> ShowS #

show :: Food -> String #

showList :: [Food] -> ShowS #

dietProblemTest :: forall m. (PrintfArg (Numeric m), RealFrac (Numeric m), MonadIO m, LPMonad m) => m () Source #