math-programming-tests-0.5.1: Utility functions for testing implementations of the math-programming library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Math.Programming.Tests.LP

Documentation

makeLPTests Source #

Arguments

:: (MonadIO m, MonadLP v c o m) 
=> (m () -> IO ())

The runner for the API being tested.

-> Spec

The resulting test suite.

data Food Source #

Constructors

Corn 
Milk 
Bread 

Instances

Instances details
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 #

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 #

dietProblemTest :: (MonadIO m, MonadLP v c o m) => m () Source #