Class FactorialTest

java.lang.Object
  extended by FactorialTest

public class FactorialTest
extends java.lang.Object


Constructor Summary
FactorialTest()
           
 
Method Summary
 void fBodyToString()
          Will fail until Extension 1 is completed.
 void fFiveInEnv2()
          When this test is run, it does the equivalent of the following ML program, which calculates 120:
 void fFiveToString()
          Will fail until Extension 1 is completed.
 void letFunInEnv3()
          Will fail until Extension 3 is completed.
 void letFunToString()
          Will fail until Extensions 1 and 3 are both completed.
 void letValInEnv1()
          Will fail until Extension 2 is completed.
 void letValToString()
          Will fail until Extensions 1 and 2 are both completed.
 void nestedLetsInEnv0()
          Will fail until Extensions 2 and 3 are both completed.
 void nestedLetsToString()
          Will fail until Extensions 1, 2, and 3 are all completed.
 void setup()
           
 void sixMinusOneToString()
          Will fail until Extension 1 is completed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactorialTest

public FactorialTest()
Method Detail

setup

public void setup()

fFiveInEnv2

public void fFiveInEnv2()
When this test is run, it does the equivalent of the following ML program, which calculates 120:
 fun f n = if n = 0 then 1 else f(n-1)*n;
 val five = 6-1;
 f five;
 


fFiveToString

public void fFiveToString()
Will fail until Extension 1 is completed.


sixMinusOneToString

public void sixMinusOneToString()
Will fail until Extension 1 is completed.


fBodyToString

public void fBodyToString()
Will fail until Extension 1 is completed.


letValInEnv1

public void letValInEnv1()
Will fail until Extension 2 is completed.


letValToString

public void letValToString()
Will fail until Extensions 1 and 2 are both completed.


letFunInEnv3

public void letFunInEnv3()
Will fail until Extension 3 is completed.


letFunToString

public void letFunToString()
Will fail until Extensions 1 and 3 are both completed.


nestedLetsInEnv0

public void nestedLetsInEnv0()
Will fail until Extensions 2 and 3 are both completed.


nestedLetsToString

public void nestedLetsToString()
Will fail until Extensions 1, 2, and 3 are all completed.