Skip to main content
3 votes
1 answer
111 views

I have a testcase for a complicated function that for unclear reasons tends to hang on certain platforms. I would like to know which test inputs cause the hanging behaviour. I have tried to use ...
sjakobi's user avatar
  • 3,668
0 votes
2 answers
92 views

I have a Haskell datatype data Document where DocumentKind1 :: { head :: Head body :: Body } -> Document DocumentKind2 :: { head :: Head body :: Body } -> Document data Head ...
Delfin's user avatar
  • 353
0 votes
1 answer
100 views

I'm trying to add the QuickCheck library to my stack project, I've already added it to build depends on the .cabal file and when I run the stack build command I can see that the library was compiled, ...
Lucas Carraro's user avatar
3 votes
0 answers
61 views

Take this silly test, which is meant to never terminate: module Main where import Control.Monad (unless) import System.Exit (exitFailure) import Test.QuickCheck main :: IO () main = do result <-...
Enlico's user avatar
  • 30.3k
2 votes
1 answer
55 views

I have written a program in whcih I've defined several functions for which I've defined a concrete signature, say work :: Foo -> [(Foo, Bar)] -> [(Foo, Bar)] When approaching QuickCheck-based ...
Enlico's user avatar
  • 30.3k
0 votes
1 answer
65 views

The following example fails (like it should) after 5 attempts: prop_varName :: VarName -> Bool prop_varName v = let s = content (getVarNameToken v) in length s <= 2 || isPrefixOf "a&...
OrenIshShalom's user avatar
1 vote
1 answer
86 views

I would like to print the property being tested alongside the argument that caused failure. So, I am trying to solve the second part of the problem by using Debug.Dump from the dump package. This is a ...
F. Zer's user avatar
  • 1,311
1 vote
0 answers
136 views

Current solution: I am currently using counterexample function from Test.Quickcheck: counterexample :: Testable prop => String -> prop -> Property to add informative messages in order to ...
F. Zer's user avatar
  • 1,311
1 vote
2 answers
129 views

I want to be able to use quickCheckAll to run a number of tests together. At the same time, I need to specify size constraints on my tests. In the following program, there are two tests that are ...
Geoffrey Warne's user avatar
0 votes
1 answer
57 views

I am trying to write a TestTree in which I check the following axiom for my data type type Deque a = [a] My approach is the following prop1 :: TestTree prop1 = QC.testProperty "read_empty" $...
FacundoAlvarado's user avatar
1 vote
0 answers
63 views

I am developing a property based test generator in Erlang. I have developed all the properties successfully, but only model based properties are failed after few tests. Here is my code: ...
Arraytics New's user avatar
1 vote
1 answer
76 views

I am trying to compare the QuickCheck library to the SmallCheck one. In SmallCheck I can reach particular value manipulating depth parameter. In QuickCheck: >a<-generate (replicateM 10000 ...
RandomB's user avatar
  • 3,739
0 votes
1 answer
117 views

Please consider the following piece of code: -- Represents a parsing result of an ANSI coded string. data Slice = Slice { text :: String, color :: Color } newtype Color = Color { string :: ...
Refael Sheinker's user avatar
2 votes
1 answer
225 views

Consider the following piece of code: data Slice = Slice { text :: String, color :: Color } newtype Color = Color { string :: String } mainList :: [FilePath] -> [FilePath] -> [...
Refael Sheinker's user avatar
0 votes
0 answers
170 views

I am having issues with installing QuickCheck for Haskell using GHC 9.4.4 and GHC 8.8.4, and I get the same output. Any assistance would be greatly appreciated! Resolving dependencies... cabal: Could ...
OwlZeroOne's user avatar

15 30 50 per page
1
2 3 4 5
29