/
set-test.sml
30 lines (21 loc) · 972 Bytes
/
set-test.sml
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
structure SetTest :> UNIT_TEST =
struct
structure U = UnitTests
structure BitSet1024 = BitSetExtFn(val size = 1024)
structure BitSetTest = SetTestFn(struct
val strName = "BitSet"
structure S = BitSet1024
end)
structure IntSplaySet = OrdSetExtFn(struct
type ord_key = int
val compare = Int.compare
val ppItem = PP.int
end)
structure OrdSetTest = SetTestFn(struct
val strName = "IntSplaySet"
structure S = IntSplaySet
end)
val test = fn () => U.TestLabel("SetTest",
U.TestList[ BitSetTest.test()
, OrdSetTest.test()])
end