packages feed

sbv-0.9.24: SBVUnitTest/TestSuite/Puzzles/DogCatMouse.hs

-----------------------------------------------------------------------------
-- |
-- Module      :  TestSuite.Puzzles.DogCatMouse
-- Copyright   :  (c) Levent Erkok
-- License     :  BSD3
-- Maintainer  :  erkokl@gmail.com
-- Stability   :  experimental
-- Portability :  portable
--
-- Test suite for Data.SBV.Examples.Puzzles.DogCatMouse
-----------------------------------------------------------------------------

module TestSuite.Puzzles.DogCatMouse(testSuite) where

import Data.SBV
import Data.SBV.Examples.Puzzles.DogCatMouse

import SBVTest

-- Test suite
testSuite :: SBVTestSuite
testSuite = mkTestSuite $ \goldCheck -> test [
  "dog cat mouse" ~: allSat p `goldCheck` "dogCatMouse.gold"
 ]
 where p = do d <- exists "d"
              c <- exists "c"
              m <- exists "m"
              return $ puzzle d c m