首页> 外文会议>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'评估r的r',该突变体r'比r;我们提出了四种方法的方法,这些方法在他们所雇用的政策中判断r'比r'更好。实验表明,该方法能够以合理的用户努力实际修复错误的正则表达式。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号