edu.vub.at.objects.natives.grammar
Class TestEval

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byedu.vub.at.AmbientTalkTest
              extended byedu.vub.at.objects.natives.grammar.TestEval
All Implemented Interfaces:
junit.framework.Test

public class TestEval
extends AmbientTalkTest

Tests the ATObject.meta_eval(ATContext) method for different kinds of abstract grammar elements.


Nested Class Summary
 
Nested classes inherited from class edu.vub.at.AmbientTalkTest
AmbientTalkTest.Actorscript
 
Field Summary
private  AGSymbol atFooBar_
           
private  AGSymbol atM_
           
private  NATNumber atThree_
           
private  AGSymbol atX_
           
private  AGSymbol atY_
           
private  AGSymbol atZ_
           
 
Fields inherited from class edu.vub.at.AmbientTalkTest
ctx_
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestEval()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void testArgumentSplicing()
           
 void testAssignField()
           
 void testAssignTable()
           
 void testAssignVariable()
           
 void testBegin()
           
 void testClosureApplication()
           
 void testClosureLiteral()
           
 void testDefExternalField()
           
 void testDefExternalMethod()
           
 void testDefField()
           
 void testDefFunction()
           
 void testDefTable()
           
 void testDelegation()
           
 void testFirstClassAsyncMessage()
           
 void testFirstClassMessage()
           
 void testMethodApplication()
           
 void testMethodInvocation()
           
 void testMultiAssignment()
           
 void testQuotation()
           
 void testSelection()
           
 void testSelfReference()
           
 void testSuperReference()
           
 void testSymbolReference()
           
 void testTabulation()
           
 void testVariableArguments()
           
 void testVariableKeywordArguments()
           
 void testVariableMultiDefinition()
           
 
Methods inherited from class edu.vub.at.AmbientTalkTest
actorTest, evalActor, evalAndCompareTo, evalAndCompareTo, evalAndReturn, evalAndTestException, evalInActor, evalSnippet, printedEquals
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

atThree_

private final NATNumber atThree_

atX_

private final AGSymbol atX_

atY_

private final AGSymbol atY_

atZ_

private final AGSymbol atZ_

atM_

private final AGSymbol atM_

atFooBar_

private final AGSymbol atFooBar_
Constructor Detail

TestEval

public TestEval()
Method Detail

main

public static void main(java.lang.String[] args)

testBegin

public void testBegin()

testDefField

public void testDefField()
                  throws InterpreterException
Throws:
InterpreterException

testDefFunction

public void testDefFunction()
                     throws InterpreterException
Throws:
InterpreterException

testDefTable

public void testDefTable()
                  throws InterpreterException
Throws:
InterpreterException

testDefExternalMethod

public void testDefExternalMethod()
                           throws InterpreterException
Throws:
InterpreterException

testDefExternalField

public void testDefExternalField()
                          throws InterpreterException
Throws:
InterpreterException

testAssignVariable

public void testAssignVariable()
                        throws InterpreterException
Throws:
InterpreterException

testAssignTable

public void testAssignTable()
                     throws InterpreterException
Throws:
InterpreterException

testAssignField

public void testAssignField()
                     throws InterpreterException
Throws:
InterpreterException

testMultiAssignment

public void testMultiAssignment()
                         throws InterpreterException
Throws:
InterpreterException

testSymbolReference

public void testSymbolReference()
                         throws InterpreterException
Throws:
InterpreterException

testTabulation

public void testTabulation()
                    throws InterpreterException
Throws:
InterpreterException

testClosureLiteral

public void testClosureLiteral()
                        throws InterpreterException
Throws:
InterpreterException

testSelfReference

public void testSelfReference()
                       throws InterpreterException
Throws:
InterpreterException

testSuperReference

public void testSuperReference()
                        throws InterpreterException
Throws:
InterpreterException

testSelection

public void testSelection()
                   throws InterpreterException
Throws:
InterpreterException

testFirstClassMessage

public void testFirstClassMessage()
                           throws InterpreterException
Throws:
InterpreterException

testFirstClassAsyncMessage

public void testFirstClassAsyncMessage()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testMethodApplication

public void testMethodApplication()
                           throws InterpreterException
Throws:
InterpreterException

testClosureApplication

public void testClosureApplication()
                            throws InterpreterException
Throws:
InterpreterException

testMethodInvocation

public void testMethodInvocation()
                          throws InterpreterException
Throws:
InterpreterException

testDelegation

public void testDelegation()
                    throws InterpreterException
Throws:
InterpreterException

testQuotation

public void testQuotation()
                   throws InterpreterException
Throws:
InterpreterException

testArgumentSplicing

public void testArgumentSplicing()
                          throws InterpreterException
Throws:
InterpreterException

testVariableArguments

public void testVariableArguments()
                           throws InterpreterException
Throws:
InterpreterException

testVariableKeywordArguments

public void testVariableKeywordArguments()
                                  throws InterpreterException
Throws:
InterpreterException

testVariableMultiDefinition

public void testVariableMultiDefinition()
                                 throws InterpreterException
Throws:
InterpreterException