mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
regexp: test for inline options
This commit is contained in:
@@ -103,6 +103,10 @@ public class RegExpParseTest extends BaseParseTestCase {
|
||||
return super.getTestDataPath() + "/gen/";
|
||||
}
|
||||
|
||||
public void testOptions() throws Exception {
|
||||
doTest("options/");
|
||||
}
|
||||
|
||||
public void testSimple() throws Exception {
|
||||
doTest("simple/");
|
||||
}
|
||||
|
||||
@@ -919,6 +919,21 @@
|
||||
</test>
|
||||
</regressions>
|
||||
|
||||
<options>
|
||||
<test host="com.intellij.psi.impl.JavaRegExpHost">
|
||||
<pattern><![CDATA[(?i<error descr="Unknown inline option flag">Z</error>m)abc]]></pattern>
|
||||
<expected>OK</expected>
|
||||
</test>
|
||||
<test host="com.intellij.psi.impl.JavaRegExpHost">
|
||||
<pattern>(?idmsuxU)nice</pattern>
|
||||
<expected>OK</expected>
|
||||
</test>
|
||||
<test host="com.intellij.psi.impl.JavaRegExpHost">
|
||||
<pattern verify="false">(?idm-suxU)one(?suxU-idm)two</pattern>
|
||||
<expected>OK</expected>
|
||||
</test>
|
||||
</options>
|
||||
|
||||
<test>
|
||||
<pattern>abc)</pattern>
|
||||
<expected>ERR</expected>
|
||||
|
||||
Reference in New Issue
Block a user