This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
15
unikernel/duniverse/base/test/test_sign.ml
Normal file
15
unikernel/duniverse/base/test/test_sign.ml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
open! Import
|
||||
open! Sign
|
||||
|
||||
let%test "of_int" = of_int 37 = Pos && of_int (-22) = Neg && of_int 0 = Zero
|
||||
|
||||
let%test_unit "( * )" =
|
||||
List.cartesian_product all all
|
||||
|> List.iter ~f:(fun (s1, s2) ->
|
||||
[%test_result: int] (to_int (s1 * s2)) ~expect:(Int.( * ) (to_int s1) (to_int s2)))
|
||||
;;
|
||||
|
||||
let%expect_test ("hash coherence" [@tags "64-bits-only"]) =
|
||||
check_hash_coherence [%here] (module Sign) all;
|
||||
[%expect {| |}]
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue