Created
June 2, 2019 18:58
-
-
Save dnno/d422ecd8157ad2fcfa5519c5a992ff6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class FibonacciTest { | |
| @Parameters | |
| public static Collection<object[]> data() { | |
| return Arrays.asList(new Object[][] { | |
| {0,0},{1,1},{2,1},{3,2} })}; | |
| private int input, expected; | |
| public FibonacciTest(int input, int expected) { | |
| this.input = input; this.expected = expected; | |
| } | |
| @Test | |
| public void test() { | |
| assertEquals(expected, Fibonacci.compute(input)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment