paired programming work
This commit is contained in:
parent
97812d3761
commit
060e46814a
3 changed files with 72 additions and 7 deletions
|
|
@ -78,7 +78,16 @@ instance HasScriptRunner IntProp Int where
|
|||
expect _ = Var IsSmall :&&: Var IsNegative
|
||||
script _ i =
|
||||
let ii = fromIntegral i :: Integer
|
||||
in compile (pif ((fromInteger ii #< (0 :: Term s PInteger)) #&& ((fromInteger (-10) :: Term s PInteger) #<= fromInteger ii)) (pcon PUnit) perror)
|
||||
in compile
|
||||
( pif
|
||||
( ( fromInteger ii
|
||||
#< (0 :: Term s PInteger)
|
||||
)
|
||||
#&& ((fromInteger (-10) :: Term s PInteger) #<= fromInteger ii)
|
||||
)
|
||||
(pcon PUnit)
|
||||
perror
|
||||
)
|
||||
|
||||
intPlutarchTests :: TestTree
|
||||
intPlutarchTests =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue