Kaynağa Gözat

twelve-days: update starter implementation to match POLICIES.md

Logan Stucki 9 yıl önce
ebeveyn
işleme
e598bc3afc
No account linked to committer's email

+ 8
- 4
exercises/twelve-days/src/main/java/TwelveDays.java Dosyayı Görüntüle

@@ -1,5 +1,9 @@
1 1
 public class TwelveDays {
2
-	public String verse(int verseNumber) {
3
-		throw new UnsupportedOperationException("Delete this statement and provide your own implementation.");
4
-	}
5
-}
2
+    public String verse(int verseNumber) {
3
+        throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
4
+    }
5
+
6
+    public String verses(int startVerse, int endVerse) {
7
+        throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
8
+    }
9
+}

+ 0
- 4
exercises/twelve-days/src/test/java/TwelveDaysTest.java Dosyayı Görüntüle

@@ -120,7 +120,6 @@ public class TwelveDaysTest {
120 120
     @Ignore("Remove to run test")
121 121
     @Test
122 122
     public void testMultipleVerses() {
123
-/*
124 123
         String expectedVerseOneToThree = "On the first day of Christmas my true love gave to me, " +
125 124
                 "a Partridge in a Pear Tree.\n\n" +
126 125
                 "On the second day of Christmas my true love gave to me, two Turtle Doves, " +
@@ -128,13 +127,11 @@ public class TwelveDaysTest {
128 127
                 "On the third day of Christmas my true love gave to me, three French Hens, two Turtle Doves, " +
129 128
                 "and a Partridge in a Pear Tree.\n";
130 129
         assertEquals(expectedVerseOneToThree, twelveDays.verses(1, 3));
131
-*/
132 130
     }
133 131
 
134 132
     @Ignore("Remove to run test")
135 133
     @Test
136 134
     public void testSingWholeSong() {
137
-/*
138 135
         String expectedSong = "On the first day of Christmas my true love gave to me, a Partridge in a Pear Tree.\n" +
139 136
                 "\n" +
140 137
                 "On the second day of Christmas my true love gave to me, two Turtle Doves, " +
@@ -178,6 +175,5 @@ public class TwelveDaysTest {
178 175
                 "seven Swans-a-Swimming, six Geese-a-Laying, five Gold Rings, four Calling Birds, " +
179 176
                 "three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.\n";
180 177
         assertEquals(expectedSong, twelveDays.sing());
181
-*/
182 178
     }
183 179
 }