-
Notifications
You must be signed in to change notification settings - Fork 1
/
Troll_prop.re
47 lines (42 loc) · 1.09 KB
/
Troll_prop.re
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
open Framework;
open QCheckRely;
open Generator.Fantasy;
open Lib.Troll;
let {describe} = extendDescribe(QCheckRely.Matchers.matchers);
describe("Troll Invariance", ({test}) => {
test("Troll score should be 0 when all elves resurrected", ({expect}) => {
QCheck.Test.make(
~count=1000,
~name="Troll score should be 0 when all elves resurrected",
troll_arbitrary,
troll =>
all_elves_resurrected(troll) |> scoring == 0
)
|> expect.ext.qCheckTest;
();
});
test("Troll score should always be >= 0", ({expect}) => {
/* Test go there */
()
});
});
describe("Troll Inverse", ({test}) => {
test("oops_he_survived should always be inverse of i_got_one", ({expect}) => {
/* Test go there */
()
})
});
describe("Troll Analogy", ({test}) => {
test("i_got_one and i_got should be consistent", ({expect}) => {
/* Test go there */
()
})
});
describe("Troll Idempotence", ({test}) => {
test(
"all_elves_of_a_kind_resurrected brings the Troll killing list to a stable state",
({expect}) => {
/* Test go there */
()
})
});