<?xml version="1.0" encoding="UTF-8"?>
<test-data>
    <test-code>
        <description><![CDATA[
Bad example #1
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
#macro( mymacro $v1 )
    #foreach($c1 in $list)
        stuff
    #end
#end
     ]]></code>
    <source-type>vm</source-type>
    </test-code>

    <test-code>
        <description><![CDATA[
Good example #1
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
#macro( mymacro $v1 )
    #foreach($c1 in $v1)
    	stuff
    #end
#end
     ]]></code>
    <source-type>vm</source-type>
    </test-code>
    
    <test-code>
        <description><![CDATA[
Good example #2
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
#macro( mymacro $v1 )
    #set($v2 = "${X} $v1 ${X}" )
#end
     ]]></code>
    <source-type>vm</source-type>
    </test-code>
    
    <test-code>
        <description><![CDATA[
Good example #3
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
#macro( mymacro $v1 )
    #set($v2 = "${X}${v1}${X}" )
#end
     ]]></code>
    <source-type>vm</source-type>
    </test-code>
    
    <test-code>
        <description><![CDATA[
Good example #4
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
#macro( mymacro $v1 )
    #set($v2 = "${X}$!v1${X}" )
#end
     ]]></code>
    <source-type>vm</source-type>
    </test-code>
    
    <test-code>
        <description><![CDATA[
Good example #5
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
#macro( mymacro $v1 )
    #set($v2 = "${X}${v1.val}${X}" )
#end
     ]]></code>
    <source-type>vm</source-type>
    </test-code>
    
    <test-code>
        <description><![CDATA[
Good example #6
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
#macro( mymacro $v1 )
    <div class="c1 $!v1">
#end
     ]]></code>
    <source-type>vm</source-type>
    </test-code>
    
    <test-code>
        <description><![CDATA[
Good example #7
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
#macro( mymacro $v1 )$context.getSomething()${v1}#end
     ]]></code>
    <source-type>vm</source-type>
    </test-code>
</test-data>
