Przeglądaj źródła

fixed tests in character index

Jose Bedolla 6 lat temu
rodzic
commit
158458ed36

+ 1
- 1
src/main/java/rocks/zipcode/io/quiz3/arrays/WaveGenerator.java Wyświetl plik

@@ -6,7 +6,7 @@ package rocks.zipcode.io.quiz3.arrays;
6 6
 public class WaveGenerator {
7 7
     public static String[] wave(String str) {
8 8
         String[] arr = new String[str.length()];
9
-        
9
+
10 10
         return arr;
11 11
     }
12 12
     }

+ 2
- 2
src/test/java/rocks/zipcode/io/quiz3/fundamentals/stringutils/IsCharacterAtIndex.java Wyświetl plik

@@ -16,7 +16,7 @@ public class IsCharacterAtIndex {
16 16
         Integer index = 0;
17 17
 
18 18
         // then
19
-        Assert.assertTrue(StringUtils.isCharacterAtIndex(string, character, index));
19
+        Assert.assertFalse(StringUtils.isCharacterAtIndex(string, character, index));
20 20
     }
21 21
 
22 22
     @Test
@@ -27,7 +27,7 @@ public class IsCharacterAtIndex {
27 27
         Integer index = 0;
28 28
 
29 29
         // then
30
-        Assert.assertFalse(StringUtils.isCharacterAtIndex(string, character, index));
30
+        Assert.assertTrue(StringUtils.isCharacterAtIndex(string, character, index));
31 31
     }
32 32
 
33 33