public class FibonacciTest extends Object
hw3.Fibonacci
uses are 0-based.Fibonacci
Constructor and Description |
---|
FibonacciTest() |
Modifier and Type | Method and Description |
---|---|
void |
expectedIllegalArgumentException()
Tests that Fibonacci throws an IllegalArgumentException
for a negative number.
|
static void |
setupBeforeTests() |
void |
testBaseCase()
Tests to see that Fibonacci returns the correct value for the base cases, n=0 and n=1
|
void |
testInductiveCase()
Tests inductive cases of the Fibonacci sequence
|
void |
testThrowsIllegalArgumentException()
Tests that Fibonacci throws no IllegalArgumentException
for zero or for a positive number.
|
public FibonacciTest()
public static void setupBeforeTests() throws Exception
Exception
public void expectedIllegalArgumentException()
public void testThrowsIllegalArgumentException()
public void testBaseCase()
public void testInductiveCase()