首页> 外文会议>IFIP WG 6.1 international conference on testing software and systems >Interactive Testing and Repairing of Regular Expressions
【24h】

Interactive Testing and Repairing of Regular Expressions

机译:正则表达式的交互式测试和修复

获取原文

摘要

Writing a regular expression that exactly captures a set of desired strings is difficult, since regular expressions provide a compact syntax that makes it difficult to easily understand their meaning. Testing is widely used to validate regular expressions. Indeed, although a developer could have problems in writing the correct regular expression, (s)he can easily assess whether a string should be accepted or not. Starting from this observation, we propose an iterative mutation-based process that is able to test and repair a faulty regular expression. The approach consists in generating strings S that distinguish a regular expression r from its mutants, asking the user to assess the correct evaluation of S, and possibly substituting r with a mutant r' that evaluates S more correctly than r; we propose four variants of the approach which differ in the policy they employ to judge whether r' is better than r. Experiments show that the proposed approach is able to actually repair faulty regular expressions with a reasonable user's effort.
机译:编写正则表达式以精确捕获一组所需的字符串是很困难的,因为正则表达式提供了一种紧凑的语法,使得难以轻松理解它们的含义。测试被广泛用于验证正则表达式。确实,尽管开发人员在编写正确的正则表达式时可能会遇到问题,但是他可以轻松地评估是否应接受字符串。从这一观察出发,我们提出了一个基于迭代突变的过程,该过程能够测试和修复错误的正则表达式。该方法包括生成将正则表达式r与它的突变体区分开的字符串S,要求用户评估S的正确值,并可能用一个比r更正确地评估S的突变体r'替代r。我们提出了该方法的四个变体,它们的不同之处在于它们用来判断r'是否优于r的策略。实验表明,所提出的方法能够在合理的用户努力下实际修复错误的正则表达式。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号