Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Exponential behaviour in Test.both #45

Open
runarorama opened this issue May 7, 2020 · 0 comments
Open

Exponential behaviour in Test.both #45

runarorama opened this issue May 7, 2020 · 0 comments

Comments

@runarorama
Copy link
Contributor

Given

test.laws.lattice : '{Gen} a -> (a ->{e} a ->{e} a) -> (a ->{e} a ->{e} a) ->{Gen,e} Test
test.laws.lattice gen meet join = 
  absorption gen meet join 
    `both` associative gen meet
    `both` associative gen join
    `both` commutative gen meet
    `both` commutative gen join

The following test essentially never completes:

test> minMaxLattice = runs 2 '(test.laws.lattice nat Nat.min Nat.max)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant