没有合适的资源?快使用搜索试试~ 我知道了~
ppx_expect:类似于OCaml的框架
共140个文件
ml:67个
expected:21个
mli:21个
需积分: 9 0 下载量 180 浏览量
2021-05-06
05:34:16
上传
评论
收藏 83KB ZIP 举报
温馨提示
期望测试-OCaml的类似于cram的框架 介绍 Expect-test是一个使用OCaml编写测试的框架,类似于 。 期望测试使用let%expect_test构造模拟现有的内联测试框架。 期望测试的主体可以包含生成输出的代码,并与%expect扩展表达式交错以表示期望的输出。 运行时,这些测试将通过,只要输出与预期的匹配即可通过。 如果测试失败,则会生成带有后缀“ .corrected”的更正文件,并带有实际输出,并且inline_tests_runner将输出差异。 这是一个示例的Expect-test程序,在foo.ml说 open Core let % expect_test " addition " = printf " %d " ( 1 + 2 ); [ % expect { | 4 | }] 运行测试时(作为inline_tests_runner一部分),将生
资源推荐
资源详情
资源评论
收起资源包目录
ppx_expect:类似于OCaml的框架 (140个子文件)
expect_test_collector_stubs.c 3KB
dune 3KB
dune 387B
dune 348B
dune 313B
dune 292B
dune 233B
dune 230B
dune 194B
dune 182B
dune 164B
dune 158B
dune 137B
dune 114B
dune 82B
dune 75B
dune 74B
dune 74B
dune 0B
dune-project 16B
flexible.ml.corrected.expected 2KB
functor.ml.corrected.expected 624B
spacing.ml.corrected.expected 603B
pending_output.ml.corrected.expected 517B
function_with_distinct_outputs.ml.corrected.expected 495B
exact.ml.corrected.expected 492B
tag.ml.corrected.expected 475B
trailing.ml.corrected.expected 397B
regexp.ml.corrected.expected 311B
test-output.expected 291B
exn_missing.ml.corrected.expected 208B
exn.ml.corrected.expected 197B
glob.ml.corrected.expected 186B
exn_and_trailing.ml.corrected.expected 180B
missing.ml.corrected.expected 174B
reordered.ml.corrected.expected 167B
expect_output.ml.corrected.expected 143B
unidiomatic_syntax.ml.corrected.expected 100B
normal_strings.ml.corrected.expected 83B
semicolon.ml.corrected.expected 67B
string_padding.ml.corrected.expected 67B
.gitignore 33B
tabs.ml.in 306B
runtime.js 1KB
Makefile 259B
CHANGES.md 5KB
CONTRIBUTING.md 2KB
LICENSE.md 1KB
cst.ml 18KB
matcher.ml 15KB
file.ml 10KB
expect_test_collector.ml 9KB
ppx_expect_evaluator.ml 8KB
main.ml 7KB
test_matcher.ml 6KB
reconcile.ml 6KB
expectation.ml 5KB
ppx_expect_payload.ml 3KB
nine.ml 2KB
expect_test_config_types_intf.ml 2KB
fmt.ml 2KB
tests.ml 2KB
flexible.ml 2KB
space_nine.ml 1KB
xnine.ml 1KB
bad_test.ml 1KB
expect_extension.ml 1KB
control_chars.ml 1KB
expect_test_negative_tests_cinaps.ml 962B
three.ml 910B
test_output.ml 732B
expect_test_config_types.ml 699B
spacing.ml 609B
exact.ml 506B
tag.ml 413B
escaping.ml 411B
functor.ml 385B
choose_tag.ml 361B
uncaught_exn.ml 358B
expect_test_config.ml 354B
trailing.ml 347B
regexp.ml 309B
test.ml 308B
pending_output.ml 297B
expect_test_matcher.ml 280B
exn_missing.ml 273B
function_with_pattern_outputs.ml 266B
test_ref.ml 265B
function_with_distinct_outputs.ml 256B
function.ml 237B
chdir.ml 192B
glob.ml 192B
test.ml 190B
expect_test_common.ml 183B
exn.ml 172B
hello_async.ml 160B
import.ml 150B
import.ml 150B
functor.ml 149B
reordered.ml 141B
共 140 条
- 1
- 2
资源评论
流浪的夏先森
- 粉丝: 22
- 资源: 4688
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功