package org.xreate;

import com.google.common.collect.ListMultimap;
import com.google.common.collect.Maps;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Map;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
 * Unit test for simple App.
 */
public class ASTTest1 
    extends TestCase
{
    /**
     * Create the test case
     *
     * @param testName name of the test case
     */
    public ASTTest1( String testName )
    {
        super( testName );
    }

    /**
     * @return the suite of tests being tested
     */
    public static Test suite()
    {
        return new TestSuite( ASTTest1.class );
    }

    /**
     * Rigourous Test :-)
     */
    public void testAST1() throws NoSuchMethodException, IllegalAccessException, Throwable
    {
        ASTVar x = new ASTVar();
        ASTValue y = new ASTValue(10);
        ASTAssignment as = new ASTAssignment();
        
        as.var = x;
        as.value = y;
        ComputableAnalysis analysis = new ComputableAnalysis();
        ASTNode result = as.acceptComputableVisitor(analysis);
        
        assertTrue( true );
    }
}



