File: ParOrDet.curry

package info (click to toggle)
curry-tools 1.0.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,492 kB
  • ctags: 121
  • sloc: makefile: 470; sh: 421
file content (16 lines) | stat: -rw-r--r-- 412 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{-# OPTIONS_CYMAKE -F --pgmF=currypp --optF=defaultrules #-}

import Test.EasyCheck

-- Parallel or declared as a deterministic function:
por :: Bool -> Bool -> DET Bool
por True  _     = True
por _     True  = True
por False False = False

main = por True True

test_por1 = por True  True  -=- True
test_por2 = por True  False -=- True
test_por3 = por False True  -=- True
test_por4 = por False False -=- False