Selaa lähdekoodia

Updated test for sum of multiplies #1253

Harikrushna Vanpariya 8 vuotta sitten
vanhempi
commit
a4a699a1af

+ 13
- 1
exercises/sum-of-multiples/src/test/java/SumOfMultiplesTest.java Näytä tiedosto

32
 
32
 
33
     @Ignore("Remove to run test")
33
     @Ignore("Remove to run test")
34
     @Test
34
     @Test
35
+    public void testSumOfMultiplesOf3aUpToSeven() {
36
+
37
+        int[] set = {
38
+                3
39
+        };
40
+        int output = new SumOfMultiples(7, set).getSum();
41
+        assertEquals(9, output);
42
+
43
+    }
44
+
45
+    @Ignore("Remove to run test")
46
+    @Test
35
     public void testSumOfMultiplesOf3and5UpToTen() {
47
     public void testSumOfMultiplesOf3and5UpToTen() {
36
 
48
 
37
         int[] set = {
49
         int[] set = {
112
 
124
 
113
     @Ignore("Remove to run test")
125
     @Ignore("Remove to run test")
114
     @Test
126
     @Test
115
-    public void testSumOfMultiplesOf5and25UpToTwoHundredSeventyFive() {
127
+    public void testSumOfMultiplesOf5and25UpToFiftyOne() {
116
 
128
 
117
         int[] set = {
129
         int[] set = {
118
                 5,
130
                 5,