首页> 外文会议>International symposium on functional and logic programming >PrologCheck - Property-Based Testing in Prolog
【24h】

PrologCheck - Property-Based Testing in Prolog

机译:PrologCheck-Prolog中基于属性的测试

获取原文

摘要

We present PrologCheck, an automatic tool for property-based testing of programs in the logic programming language Prolog with randomised test data generation. The tool is inspired by the well known QuickCheck, originally designed for the functional programming language Haskell. It includes features that deal with specific characteristics of Prolog such as its relational nature (as opposed to Haskell) and the absence of a strong type discipline. PrologCheck expressiveness stems from describing properties as Prolog goals. It enables the definition of custom test data generators for random testing tailored for the property to be tested. Further, it allows the use of a predicate specification language that supports types, modes and constraints on the number of successful computations. We evaluate our tool on a number of examples and apply it successfully to debug a Prolog library for AVL search trees.
机译:我们介绍PrologCheck,这是一种自动工具,用于使用逻辑编程语言Prolog对程序进行基于属性的测试,并生成随机的测试数据。该工具的灵感来自于著名的QuickCheck,该工具最初是为功能性编程语言Haskell设计的。它包括处理Prolog特定特征的功能,例如其关系性质(与Haskell相对)和缺乏强大的类型规则。 PrologCheck的表现力源于将属性描述为Prolog目标。它允许定义自定义测试数据生成器,以针对要测试的属性量身定制的随机测试。此外,它允许使用谓词规范语言,该语言支持成功计算数量的类型,模式和约束。我们通过许多示例评估我们的工具,并将其成功应用于调试AVL搜索树的Prolog库。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号