@@ -33,7 +33,9 @@ class StringLiteralCheckTest extends CheckTestCase<StringLiteralCheckTests> {
3333 assertNoMsg (check , DOUBLE_QUOTE );
3434 assertMsg (check , SINGLE_QUOTE , ' String "test" uses single quotes instead of double quotes' );
3535 assertMsg (check , INTERPOLATION , ' String "$$ value is $$ {i++} $$ i" uses single quotes instead of double quotes' );
36+ #if (haxeparser < "3.3.0")
3637 assertMsg (check , NO_INTERPOLATION , ' String "value $$$$ is i" uses single quotes instead of double quotes' );
38+ #end
3739 assertMsg (check , DOUBLE_QUOTE_WITH_EXCEPTION , ' String "test "xml" " uses single quotes instead of double quotes' );
3840 }
3941
@@ -45,7 +47,9 @@ class StringLiteralCheckTest extends CheckTestCase<StringLiteralCheckTests> {
4547 assertNoMsg (check , DOUBLE_QUOTE_WITH_EXCEPTION );
4648 assertMsg (check , SINGLE_QUOTE , ' String "test" uses single quotes instead of double quotes' );
4749 assertMsg (check , INTERPOLATION , ' String "$$ value is $$ {i++} $$ i" uses single quotes instead of double quotes' );
50+ #if (haxeparser < "3.3.0")
4851 assertMsg (check , NO_INTERPOLATION , ' String "value $$$$ is i" uses single quotes instead of double quotes' );
52+ #end
4953 }
5054
5155 public function testDoubleQuoteWithInterpolation () {
@@ -54,7 +58,9 @@ class StringLiteralCheckTest extends CheckTestCase<StringLiteralCheckTests> {
5458 assertNoMsg (check , DOUBLE_QUOTE );
5559 assertNoMsg (check , INTERPOLATION );
5660 assertMsg (check , SINGLE_QUOTE , ' String "test" uses single quotes instead of double quotes' );
61+ #if (haxeparser < "3.3.0")
5762 assertMsg (check , NO_INTERPOLATION , ' String "value $$$$ is i" uses single quotes instead of double quotes' );
63+ #end
5864 assertMsg (check , DOUBLE_QUOTE_WITH_EXCEPTION , ' String "test "xml" " uses single quotes instead of double quotes' );
5965 }
6066
@@ -65,7 +71,9 @@ class StringLiteralCheckTest extends CheckTestCase<StringLiteralCheckTests> {
6571 assertNoMsg (check , INTERPOLATION );
6672 assertNoMsg (check , DOUBLE_QUOTE_WITH_EXCEPTION );
6773 assertMsg (check , SINGLE_QUOTE , ' String "test" uses single quotes instead of double quotes' );
74+ #if (haxeparser < "3.3.0")
6875 assertMsg (check , NO_INTERPOLATION , ' String "value $$$$ is i" uses single quotes instead of double quotes' );
76+ #end
6977 }
7078}
7179
0 commit comments