arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1608.05617cs.PLcs.LO
收藏

CurryCheck:检查Curry程序的属性

CurryCheck: Checking Properties of Curry Programs

Michael Hanus

摘要:

我们提出CurryCheck,一个工具来自动测试的功能逻辑程序设计语言咖喱写的程序。CurryCheck执行单元测试以及通过一个或多个参数进行参数化的属性测试。在后一种情况下,CurryCheck通过系统地枚举测试用例来测试这些属性,以便对于较小的有限域,CurryCheck可以实际证明属性。可以在Curry模块中定义单元测试和属性,而无需导出。因此,它们对于记录源代码的预期语义也很有用。此外,CurryCheck还支持自动检查源程序中出现的规范和合同。因此,CurryCheck是一个有用的工具,有助于基于属性和规范的可靠和测试良好的声明性程序的开发。

英文摘要:

We present CurryCheck, a tool to automate the testing of programs written in the functional logic programming language Curry. CurryCheck executes unit tests as well as property tests which are parameterized over one or more arguments. In the latter case, CurryCheck tests these properties by systematically enumerating test cases so that, for smaller finite domains, CurryCheck can actually prove properties. Unit tests and properties can be defined in a Curry module without being exported. Thus, they are also useful to document the intended semantics of the source code. Furthermore, CurryCheck also supports the automated checking of specifications and contracts occurring in source programs. Hence, CurryCheck is a useful tool that contributes to the property- and specification-based development of reliable and well tested declarative programs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑