我在哪里可以找到的单元测试经常EX pressions多国语言?我在、可以找到、多国语言、单元测试

由网友(我帅我随意)分享简介:我要建一个正则表达式助手在 http://www.debuggex.com 。我想说明的详细程度要求我写我自己的解析器和匹配。I'm building a regex helper at http://www.debuggex.com. The amount of detail I want to show requ...

我要建一个正则表达式助手在 http://www.debuggex.com 。我想说明的详细程度要求我写我自己的解析器和匹配。

I'm building a regex helper at http://www.debuggex.com. The amount of detail I want to show requires me to write my own parser and matcher.

要确保我的解析器和匹配正常工作,我写我自己的单元测试Javascript的味道正则表达式,但这些只盖边缘情况我是知道的。我想用一个标准的测试套件,并于近日指出,http://hg.ecmascript.org/tests/test262/summary,我将使用。

To make sure my parser and matcher work correctly, I've written my own unit tests for the Javascript flavor of regexes, but these only cover edge cases I know about. I would like to use a standard test suite, and was recently pointed to http://hg.ecmascript.org/tests/test262/summary, which I will be using.

我的问题是,我在哪里可以找到这样的测试套件为其他正则表达式的口味?我想在未来支持其他口味。我一直无法通过Google找到任何东西(测试污染的结果与正则表达式测试器)。我找了测试套件的语言蟒蛇 PHP 的perl 的Java 红宝石和 .NET

My question is, where can I find such test suites for other regex flavors? I'd like to support other flavors in the future. I have not been able to find anything by googling ("test" pollutes the results with regex testers). I am looking for test suites for the languages python, php, perl, java, ruby, and .net.

推荐答案

大多数这些语言都是开源的。任何像样的项目应该有自己的测试用例说回购,否则我将pretty的关注。

Most of those languages are open source. Any decent project should have their test cases in said repo, otherwise I would be pretty concerned.

的Python 的正则表达式测试 PHP 的正则表达式测试 的Perl 的正则表达式测试看起来真的广泛 打开JDK 的单元测试(Java的一个开源的味道) 红宝石的正则表达式测试 单的正则表达式测试(.NET的开源版本) RE2 的测试(C ++的正则表达式在谷歌开发的发动机) ç测试套件(由AT&amp开发; T研究所) PCRE 正则表达式测试(Perl兼容普通防爆pressions C库) 的JavaScript 的正则表达式测试(ECMA技术委员会39兼容性套件) Python's regex tests PHP's regex tests Perl's regex tests looks really extensive Open JDK's unit tests (an open source flavour of Java) Ruby's regex tests Mono's regex tests (open source version of .NET) RE2's tests (C++ regex engine developed at Google) C test suite (developed by AT&T Research) PCRE regex tests (Perl Compatible Regular Expressions C library) JavaScript regex tests (Ecma Technical Committee 39 compatability suite)

我还发现在此页面这可能是对你有所帮助。

I also found an extensive chart on this page which might be of some help to you.

阅读全文

相关推荐

最新文章