|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFactorialTest
public class FactorialTest
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 |
---|
public FactorialTest()
Method Detail |
---|
public void setup()
public void fFiveInEnv2()
fun f n = if n = 0 then 1 else f(n-1)*n; val five = 6-1; f five;
public void fFiveToString()
public void sixMinusOneToString()
public void fBodyToString()
public void letValInEnv1()
public void letValToString()
public void letFunInEnv3()
public void letFunToString()
public void nestedLetsInEnv0()
public void nestedLetsToString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |