Leon hace 5 años
padre
commit
fa424956f0

+ 1
- 1
pom.xml Ver fichero

5
     <modelVersion>4.0.0</modelVersion>
5
     <modelVersion>4.0.0</modelVersion>
6
 
6
 
7
     <groupId>rocks.zipcode</groupId>
7
     <groupId>rocks.zipcode</groupId>
8
-    <artifactId>quiz3a</artifactId>
8
+    <artifactId>quiz5</artifactId>
9
     <version>1.0</version>
9
     <version>1.0</version>
10
     <build>
10
     <build>
11
         <plugins>
11
         <plugins>

+ 1
- 1
src/main/java/rocks/zipcode/quiz5/arrays/ArrayUtils.java Ver fichero

16
         return null;
16
         return null;
17
     }
17
     }
18
 
18
 
19
-    public static String removeLastElement(String[] values) {
19
+    public static String[] removeLastElement(String[] values) {
20
         return null;
20
         return null;
21
     }
21
     }
22
 }
22
 }

+ 1
- 1
src/test/java/rocks/zipcode/quiz5/arrays/arrayutils/RemoveLastElementTest.java Ver fichero

44
 
44
 
45
     private void test(String[] expected, String[] input) {
45
     private void test(String[] expected, String[] input) {
46
         // when
46
         // when
47
-        String[] actual = ArrayUtils.removeMiddleElement(input);
47
+        String[] actual = ArrayUtils.removeLastElement(input);
48
 
48
 
49
         //then
49
         //then
50
         Assert.assertArrayEquals(expected, actual);
50
         Assert.assertArrayEquals(expected, actual);