This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
17
unikernel/duniverse/base/test/test_base.ml
Normal file
17
unikernel/duniverse/base/test/test_base.ml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
open! Import
|
||||
|
||||
let%expect_test _ =
|
||||
let f x = x * 2 in
|
||||
let g x = x + 3 in
|
||||
print_s [%sexp (f @@ 5 : int)];
|
||||
[%expect {| 10 |}];
|
||||
print_s [%sexp (g @@ f @@ 5 : int)];
|
||||
[%expect {| 13 |}];
|
||||
print_s [%sexp (f @@ g @@ 5 : int)];
|
||||
[%expect {| 16 |}]
|
||||
;;
|
||||
|
||||
let%expect_test "exp is present at the toplevel" =
|
||||
print_s [%sexp (2 ** 8 : int)];
|
||||
[%expect {| 256 |}]
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue