Ints12.curry 283 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- Testing the equivalence of non-terminating operations:

import Nat
import Test.Prop

-- Two different infinite lists:
ints1 :: Int -> [Int]
ints1 n = n : ints1 (n+1)

ints2 :: Int -> [Int]
ints2 n = n : ints2 (n+2)

-- Falsified by 47th test:
ints1_equiv_ints2 = ints1 <=> ints2