regexp: test for inline options

This commit is contained in:
Bas Leijdekkers
2016-06-14 10:20:41 +03:00
parent 11c3b580c1
commit bd42c70a57
2 changed files with 19 additions and 0 deletions
@@ -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/");
}
+15
View File
@@ -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>