5 else print("assertion failed: " ^ msg ^
"\n"))
7 val v1
= fromList
[1,2,3]
8 val v2
= fromList
[1,2,3]
10 val _
= assert("vector equality",
12 andalso fromList
[v1
, v2
] = fromList
[v2
, v1
]
13 andalso v1
<> fromList
[1,2]
14 andalso v1
<> fromList
[1,2,4])
18 val a1
= fromList
[1,2,3]
19 val a2
= fromList
[1,2,3]
21 val _
= assert("array equality", a1
<> a2
)