Ocaml 测试函数

问题描述 投票:0回答:0

我制作了这个功能并且它有效,但我想知道如何做一个测试这个功能的功能(测试功能)

let color_choice(t : t_color t_array) : t_color =
   (get_value(t)).(Random.int(get_len(t) - 1))
;;

如果可能,请举例说明步骤

testing ocaml
© www.soinside.com 2019 - 2024. All rights reserved.