Pārlūkot izejas kodu

Merge branch 'master' of https://git.zipcode.rocks/Cohort4.2/Quiz4

Nathan Hall 5 gadus atpakaļ
vecāks
revīzija
77067df267

+ 3
- 2
src/main/java/rocks/zipcode/io/quiz4/generics/GenericUtils.java Parādīt failu

@@ -8,11 +8,12 @@ import java.util.TreeSet;
8 8
  * @author leon on 11/12/2018.
9 9
  */
10 10
 public class GenericUtils {
11
-    public static <_ extends Comparable> Iterable<Iterable<_>> powerSet(Set<_> originalSet) {
11
+    public static <_ extends Comparable> Iterable<? extends Iterable<_>> powerSet(Set<_> originalSet) {
12 12
         return null;
13 13
     }
14 14
 
15
-    public static <_ extends Comparable> Iterable<Iterable<_>> powerSet(_... originalSet) {
15
+    public static <_ extends Comparable> Iterable<? extends Iterable<_>> powerSet(_... originalSet) {
16 16
         return powerSet(new TreeSet<>(Arrays.asList(originalSet)));
17 17
     }
18 18
 }
19
+

+ 1
- 1
src/test/java/rocks/zipcode/io/quiz4/fundamentals/palindromeevaluator/PalindromeEvaluatorIsPalindromeTestNegative.java Parādīt failu

@@ -25,6 +25,6 @@ public class PalindromeEvaluatorIsPalindromeTestNegative {
25 25
     }
26 26
 
27 27
     public void test(String input) {
28
-        Assert.assertTrue(PalindromeEvaluator.isPalindrome(input));
28
+        Assert.assertFalse(PalindromeEvaluator.isPalindrome(input));
29 29
     }
30 30
 }