aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ch/epfl/xblast/ListsTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ch/epfl/xblast/ListsTest.java b/test/ch/epfl/xblast/ListsTest.java
index 0a2f5f9..b898399 100644
--- a/test/ch/epfl/xblast/ListsTest.java
+++ b/test/ch/epfl/xblast/ListsTest.java
@@ -31,6 +31,15 @@ public class ListsTest {
31 } 31 }
32 32
33 @Test 33 @Test
34 public void mirroredListSizeIsCorrect() {
35 int sampleSize = 10;
36 List<Integer> sampleList = IntStream.range(0, sampleSize).boxed().collect(Collectors.toList());
37 List<Integer> mirrored = Lists.mirrored(sampleList);
38
39 assertEquals(sampleSize * 2 - 1, mirrored.size());
40 }
41
42 @Test
34 public void mirrorElementsAreEqual() { 43 public void mirrorElementsAreEqual() {
35 List<Integer> sampleList = IntStream.range(0, 10).boxed().collect(Collectors.toList()); 44 List<Integer> sampleList = IntStream.range(0, 10).boxed().collect(Collectors.toList());
36 List<Integer> mirrored = Lists.mirrored(sampleList); 45 List<Integer> mirrored = Lists.mirrored(sampleList);