Przeglądaj źródła

twelve-days: create and validate starter implementations according to POLICIES.md

Smarticles101 9 lat temu
rodzic
commit
6e735c4776
Brak konta powiązanego z e-mailem autora

+ 0
- 0
exercises/twelve-days/src/main/java/.keep Wyświetl plik


+ 5
- 0
exercises/twelve-days/src/main/java/TwelveDays.java Wyświetl plik

1
+public class TwelveDays {
2
+	public String verse(int verseNumber) {
3
+		throw new UnsupportedOperationException("Delete this statement and provide your own implementation.");
4
+	}
5
+}

+ 4
- 0
exercises/twelve-days/src/test/java/TwelveDaysTest.java Wyświetl plik

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