Просмотр исходного кода

Merge pull request #429 from FridaTveit/AddIgnoreHint

rna-transcription: add hint to Ignore annotation
Stuart Kent 9 лет назад
Родитель
Сommit
ffbb48cf66

+ 1
- 1
bin/journey-test.sh Просмотреть файл

@@ -230,7 +230,7 @@ solve_all_exercises() {
230 230
     gradle compileTestJava
231 231
     # Ensure we run all the tests (as delivered, all but the first is @Ignore'd)
232 232
     for testfile in `find . -name "*Test.java"`; do
233
-      sed 's/@Ignore//' ${testfile} > "${tempfile}" && mv "${tempfile}" "${testfile}"
233
+      sed 's/@Ignore\(.*\)//' ${testfile} > "${tempfile}" && mv "${tempfile}" "${testfile}"
234 234
     done
235 235
     gradle test
236 236
     popd

+ 5
- 5
exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java Просмотреть файл

@@ -17,31 +17,31 @@ public class RnaTranscriptionTest {
17 17
         Assert.assertEquals("", rnaTranscription.ofDna(""));
18 18
     }
19 19
 
20
-    @Ignore
20
+    @Ignore("Remove to run test")
21 21
     @Test
22 22
     public void testRnaTranscriptionOfCytosineIsGuanine() {
23 23
         Assert.assertEquals("G", rnaTranscription.ofDna("C"));
24 24
     }
25 25
 
26
-    @Ignore
26
+    @Ignore("Remove to run test")
27 27
     @Test
28 28
     public void testRnaTranscriptionOfGuanineIsCytosine() {
29 29
         Assert.assertEquals("C", rnaTranscription.ofDna("G"));
30 30
     }
31 31
 
32
-    @Ignore
32
+    @Ignore("Remove to run test")
33 33
     @Test
34 34
     public void testRnaTranscriptionOfThymineIsAdenine() {
35 35
         Assert.assertEquals("A", rnaTranscription.ofDna("T"));
36 36
     }
37 37
 
38
-    @Ignore
38
+    @Ignore("Remove to run test")
39 39
     @Test
40 40
     public void testRnaTranscriptionOfAdenineIsUracil() {
41 41
         Assert.assertEquals("U", rnaTranscription.ofDna("A"));
42 42
     }
43 43
 
44
-    @Ignore
44
+    @Ignore("Remove to run test")
45 45
     @Test
46 46
     public void testRnaTranscription() {
47 47
         Assert.assertEquals("UGCACCAGAAUU", rnaTranscription.ofDna("ACGTGGTCTTAA"));