@@ -31,6 +31,7 @@ public class SepParsingBugTest extends TemplateTest {
31
31
32
32
@ Test
33
33
public void testAutodetectTagSyntax () throws TemplateException , IOException {
34
+ getConfiguration ().setIncompatibleImprovements (Configuration .VERSION_2_3_24 );
34
35
getConfiguration ().setTagSyntax (Configuration .AUTO_DETECT_TAG_SYNTAX );
35
36
assertOutput ("<#list [1, 2] as i>${i}<#sep>, </#list>" , "1, 2" );
36
37
assertOutput ("[#list [1, 2] as i]${i}[#sep], [/#list]" , "1, 2" );
@@ -42,6 +43,7 @@ public void testAutodetectTagSyntax() throws TemplateException, IOException {
42
43
43
44
@ Test
44
45
public void testAngleBracketsTagSyntax () throws TemplateException , IOException {
46
+ getConfiguration ().setIncompatibleImprovements (Configuration .VERSION_2_3_24 );
45
47
getConfiguration ().setTagSyntax (Configuration .ANGLE_BRACKET_TAG_SYNTAX );
46
48
assertOutput ("<#list [1, 2] as i>${i}<#sep>, </#list>" , "1, 2" );
47
49
assertOutput ("[#list [1, 2] as i]${i!'-'}[#sep], [/#list]" , "[#list [1, 2] as i]-[#sep], [/#list]" );
@@ -53,6 +55,7 @@ public void testAngleBracketsTagSyntax() throws TemplateException, IOException {
53
55
54
56
@ Test
55
57
public void testSquareBracketTagSyntax () throws TemplateException , IOException {
58
+ getConfiguration ().setIncompatibleImprovements (Configuration .VERSION_2_3_24 );
56
59
getConfiguration ().setTagSyntax (Configuration .SQUARE_BRACKET_TAG_SYNTAX );
57
60
assertOutput ("<#list [1, 2] as i>${i!'-'}<#sep>, </#list>" , "<#list [1, 2] as i>-<#sep>, </#list>" );
58
61
assertOutput ("[#list [1, 2] as i]${i}[#sep], [/#list]" , "1, 2" );
@@ -62,4 +65,10 @@ public void testSquareBracketTagSyntax() throws TemplateException, IOException {
62
65
assertErrorContains ("[#sep]" , "#sep must be inside" );
63
66
}
64
67
68
+ @ Test
69
+ public void testLegacyTagSyntax () throws TemplateException , IOException {
70
+ getConfiguration ().setIncompatibleImprovements (Configuration .VERSION_2_3_23 );
71
+ getConfiguration ().setTagSyntax (Configuration .AUTO_DETECT_TAG_SYNTAX );
72
+ assertOutput ("<#list [1, 2] as i>${i}<sep>, </#list>" , "1, 2" );
73
+ }
65
74
}
0 commit comments