|
@@ -9,7 +9,7 @@ import org.junit.Test;
|
9
|
9
|
public class SwapTest {
|
10
|
10
|
@Test
|
11
|
11
|
public void testSwap() throws Exception {
|
12
|
|
- Double[] result = Swap.swap(0,1, 1.5, 2,3);
|
|
12
|
+ Double[] result = Swap.swap(0,1, 1.5, 2.0, 3.0);
|
13
|
13
|
Double[] expected = {2.0, 1.5, 3.0};
|
14
|
14
|
Assert.assertArrayEquals(expected, result);
|
15
|
15
|
}
|