diff --git a/exercises/practice/acronym/src/test/java/AcronymTest.java b/exercises/practice/acronym/src/test/java/AcronymTest.java index 967c3f05a..09b419c4a 100644 --- a/exercises/practice/acronym/src/test/java/AcronymTest.java +++ b/exercises/practice/acronym/src/test/java/AcronymTest.java @@ -1,78 +1,77 @@ import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; public class AcronymTest { - - @DisplayName("basic") @Test + @DisplayName("basic") public void basic() { assertThat(new Acronym("Portable Network Graphics").get()) .isEqualTo("PNG"); } - @DisplayName("lowercase words") @Disabled("Remove to run test") @Test + @DisplayName("lowercase words") public void lowercaseWords() { assertThat(new Acronym("Ruby on Rails").get()) .isEqualTo("ROR"); } - @DisplayName("punctuation") @Disabled("Remove to run test") @Test + @DisplayName("punctuation") public void punctuation() { assertThat(new Acronym("First In, First Out").get()) .isEqualTo("FIFO"); } - @DisplayName("all caps word") @Disabled("Remove to run test") @Test + @DisplayName("all caps word") public void nonAcronymAllCapsWord() { assertThat(new Acronym("GNU Image Manipulation Program").get()) .isEqualTo("GIMP"); } - @DisplayName("punctuation without whitespace") @Disabled("Remove to run test") @Test + @DisplayName("punctuation without whitespace") public void punctuationWithoutWhitespace() { assertThat(new Acronym("Complementary metal-oxide semiconductor").get()) .isEqualTo("CMOS"); } - @DisplayName("very long abbreviation") @Disabled("Remove to run test") @Test + @DisplayName("very long abbreviation") public void veryLongAbbreviation() { assertThat(new Acronym("Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me").get()) .isEqualTo("ROTFLSHTMDCOALM"); } - @DisplayName("consecutive delimiters") @Disabled("Remove to run test") @Test + @DisplayName("consecutive delimiters") public void consecutiveDelimiters() { assertThat(new Acronym("Something - I made up from thin air").get()) .isEqualTo("SIMUFTA"); } - @DisplayName("apostrophes") @Disabled("Remove to run test") @Test + @DisplayName("apostrophes") public void apostrophes() { assertThat(new Acronym("Halley's Comet").get()) .isEqualTo("HC"); } - @DisplayName("underscore emphasis") @Disabled("Remove to run test") @Test + @DisplayName("underscore emphasis") public void underscoreEmphasis() { assertThat(new Acronym("The Road _Not_ Taken").get()) .isEqualTo("TRNT"); diff --git a/exercises/practice/affine-cipher/src/test/java/AffineCipherTest.java b/exercises/practice/affine-cipher/src/test/java/AffineCipherTest.java index d37c96ade..668631a5c 100644 --- a/exercises/practice/affine-cipher/src/test/java/AffineCipherTest.java +++ b/exercises/practice/affine-cipher/src/test/java/AffineCipherTest.java @@ -1,4 +1,5 @@ import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -9,18 +10,20 @@ public class AffineCipherTest { private AffineCipher affineCipher = new AffineCipher(); @Test + @DisplayName("encode yes") public void testEncodeYes() { assertThat(affineCipher.encode("yes", 5, 7)).isEqualTo("xbt"); } @Disabled("Remove to run test") @Test + @DisplayName("encode no") public void testEncodeNo() { assertThat(affineCipher.encode("no", 15, 18)).isEqualTo("fu"); } - @Disabled("Remove to run test") + @DisplayName("encode OMG") @Test public void testEncodeOMG() { assertThat(affineCipher.encode("OMG", 21, 3)).isEqualTo("lvz"); @@ -28,18 +31,21 @@ public void testEncodeOMG() { @Disabled("Remove to run test") @Test + @DisplayName("encode O M G") public void testEncodeO_M_G() { assertThat(affineCipher.encode("O M G", 25, 47)).isEqualTo("hjp"); } @Disabled("Remove to run test") @Test + @DisplayName("encode mindblowingly") public void testEncodeMindBlowingly() { assertThat(affineCipher.encode("mindblowingly", 11, 15)).isEqualTo("rzcwa gnxzc dgt"); } @Disabled("Remove to run test") @Test + @DisplayName("encode numbers") public void testEncodeNumbers() { assertThat(affineCipher.encode("Testing,1 2 3, testing.", 3, 4)) .isEqualTo("jqgjc rw123 jqgjc rw"); @@ -47,6 +53,7 @@ public void testEncodeNumbers() { @Disabled("Remove to run test") @Test + @DisplayName("encode deep thought") public void testEncodeDeepThought() { assertThat(affineCipher.encode("Truth is fiction.", 5, 17)) .isEqualTo("iynia fdqfb ifje"); @@ -54,6 +61,7 @@ public void testEncodeDeepThought() { @Disabled("Remove to run test") @Test + @DisplayName("encode all the letters") public void testEncodeAllTheLetters() { assertThat(affineCipher.encode("The quick brown fox jumps over the lazy dog.", 17, 33)) .isEqualTo("swxtj npvyk lruol iejdc blaxk swxmh qzglf"); @@ -61,6 +69,7 @@ public void testEncodeAllTheLetters() { @Disabled("Remove to run test") @Test + @DisplayName("encode with a not coprime to m") public void testEncodeThrowsMeaningfulException() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> affineCipher.encode("This is a test", 6, 17)) @@ -69,6 +78,7 @@ public void testEncodeThrowsMeaningfulException() { @Disabled("Remove to run test") @Test + @DisplayName("decode exercism") public void testDecodeExercism() { assertThat(affineCipher.decode("tytgn fjr", 3, 7)) .isEqualTo("exercism"); @@ -76,6 +86,7 @@ public void testDecodeExercism() { @Disabled("Remove to run test") @Test + @DisplayName("decode a sentence") public void testDecodeSentence() { assertThat(affineCipher.decode("qdwju nqcro muwhn odqun oppmd aunwd o", 19, 16)) .isEqualTo("anobstacleisoftenasteppingstone"); @@ -83,6 +94,7 @@ public void testDecodeSentence() { @Disabled("Remove to run test") @Test + @DisplayName("decode numbers") public void testDecodeNumbers() { assertThat(affineCipher.decode("odpoz ub123 odpoz ub", 25, 7)) .isEqualTo("testing123testing"); @@ -90,6 +102,7 @@ public void testDecodeNumbers() { @Disabled("Remove to run test") @Test + @DisplayName("decode all the letters") public void testDecodeAllTheLetters() { assertThat(affineCipher.decode("swxtj npvyk lruol iejdc blaxk swxmh qzglf", 17, 33)) .isEqualTo("thequickbrownfoxjumpsoverthelazydog"); @@ -97,6 +110,7 @@ public void testDecodeAllTheLetters() { @Disabled("Remove to run test") @Test + @DisplayName("decode with no spaces in input") public void testDecodeWithNoSpaces() { assertThat(affineCipher.decode("swxtjnpvyklruoliejdcblaxkswxmhqzglf", 17, 33)) .isEqualTo("thequickbrownfoxjumpsoverthelazydog"); @@ -104,6 +118,7 @@ public void testDecodeWithNoSpaces() { @Disabled("Remove to run test") @Test + @DisplayName("decode with too many spaces") public void testDecodeWithTooManySpaces() { assertThat(affineCipher.decode("vszzm cly yd cg qdp", 15, 16)) .isEqualTo("jollygreengiant"); @@ -111,6 +126,7 @@ public void testDecodeWithTooManySpaces() { @Disabled("Remove to run test") @Test + @DisplayName("decode with a not coprime to m") public void testDecodeThrowsMeaningfulException() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> affineCipher.decode("Test", 13, 5)) diff --git a/exercises/practice/all-your-base/src/test/java/BaseConverterTest.java b/exercises/practice/all-your-base/src/test/java/BaseConverterTest.java index c84e97af0..c2ca95a70 100644 --- a/exercises/practice/all-your-base/src/test/java/BaseConverterTest.java +++ b/exercises/practice/all-your-base/src/test/java/BaseConverterTest.java @@ -1,4 +1,5 @@ import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -7,6 +8,7 @@ public class BaseConverterTest { @Test + @DisplayName("single bit one to decimal") public void testSingleBitOneToDecimal() { BaseConverter baseConverter = new BaseConverter(2, new int[]{1}); @@ -16,6 +18,7 @@ public void testSingleBitOneToDecimal() { @Disabled("Remove to run test") @Test + @DisplayName("binary to single decimal") public void testBinaryToSingleDecimal() { BaseConverter baseConverter = new BaseConverter(2, new int[]{1, 0, 1}); @@ -25,6 +28,7 @@ public void testBinaryToSingleDecimal() { @Disabled("Remove to run test") @Test + @DisplayName("single decimal to binary") public void testSingleDecimalToBinary() { BaseConverter baseConverter = new BaseConverter(10, new int[]{5}); @@ -34,6 +38,7 @@ public void testSingleDecimalToBinary() { @Disabled("Remove to run test") @Test + @DisplayName("binary to multiple decimal") public void testBinaryToMultipleDecimal() { BaseConverter baseConverter = new BaseConverter(2, new int[]{1, 0, 1, 0, 1, 0}); @@ -43,6 +48,7 @@ public void testBinaryToMultipleDecimal() { @Disabled("Remove to run test") @Test + @DisplayName("decimal to binary") public void testDecimalToBinary() { BaseConverter baseConverter = new BaseConverter(10, new int[]{4, 2}); @@ -52,6 +58,7 @@ public void testDecimalToBinary() { @Disabled("Remove to run test") @Test + @DisplayName("trinary to hexadecimal") public void testTrinaryToHexadecimal() { BaseConverter baseConverter = new BaseConverter(3, new int[]{1, 1, 2, 0}); @@ -61,6 +68,7 @@ public void testTrinaryToHexadecimal() { @Disabled("Remove to run test") @Test + @DisplayName("hexadecimal to trinary") public void testHexadecimalToTrinary() { BaseConverter baseConverter = new BaseConverter(16, new int[]{2, 10}); @@ -70,6 +78,7 @@ public void testHexadecimalToTrinary() { @Disabled("Remove to run test") @Test + @DisplayName("15-bit integer") public void test15BitInteger() { BaseConverter baseConverter = new BaseConverter(97, new int[]{3, 46, 60}); @@ -79,6 +88,7 @@ public void test15BitInteger() { @Disabled("Remove to run test") @Test + @DisplayName("empty list") public void testEmptyDigits() { BaseConverter baseConverter = new BaseConverter(2, new int[]{}); @@ -88,6 +98,7 @@ public void testEmptyDigits() { @Disabled("Remove to run test") @Test + @DisplayName("single zero") public void testSingleZero() { BaseConverter baseConverter = new BaseConverter(10, new int[]{0}); @@ -97,6 +108,7 @@ public void testSingleZero() { @Disabled("Remove to run test") @Test + @DisplayName("multiple zeros") public void testMultipleZeros() { BaseConverter baseConverter = new BaseConverter(10, new int[]{0, 0, 0}); @@ -106,6 +118,7 @@ public void testMultipleZeros() { @Disabled("Remove to run test") @Test + @DisplayName("leading zeros") public void testLeadingZeros() { BaseConverter baseConverter = new BaseConverter(7, new int[]{0, 6, 0}); @@ -115,22 +128,25 @@ public void testLeadingZeros() { @Disabled("Remove to run test") @Test + @DisplayName("input base is one") public void testFirstBaseIsOne() { assertThatExceptionOfType(IllegalArgumentException.class) - .isThrownBy(() -> new BaseConverter(1, new int[]{1})) + .isThrownBy(() -> new BaseConverter(1, new int[]{0})) .withMessage("Bases must be at least 2."); } @Disabled("Remove to run test") @Test + @DisplayName("input base is zero") public void testFirstBaseIsZero() { assertThatExceptionOfType(IllegalArgumentException.class) - .isThrownBy(() -> new BaseConverter(0, new int[]{1})) + .isThrownBy(() -> new BaseConverter(0, new int[]{})) .withMessage("Bases must be at least 2."); } @Disabled("Remove to run test") @Test + @DisplayName("input base is negative") public void testFirstBaseIsNegative() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> new BaseConverter(-2, new int[]{1})) @@ -139,6 +155,7 @@ public void testFirstBaseIsNegative() { @Disabled("Remove to run test") @Test + @DisplayName("negative digit") public void testNegativeDigit() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> new BaseConverter(2, new int[]{1, -1, 1, 0, 1, 0})) @@ -147,6 +164,7 @@ public void testNegativeDigit() { @Disabled("Remove to run test") @Test + @DisplayName("invalid positive digit") public void testInvalidPositiveDigit() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> new BaseConverter(2, new int[]{1, 2, 1, 0, 1, 0})) @@ -155,6 +173,7 @@ public void testInvalidPositiveDigit() { @Disabled("Remove to run test") @Test + @DisplayName("output base is one") public void testSecondBaseIsOne() { BaseConverter baseConverter = new BaseConverter(2, new int[]{1, 0, 1, 0, 1, 0}); @@ -166,6 +185,7 @@ public void testSecondBaseIsOne() { @Disabled("Remove to run test") @Test + @DisplayName("output base is zero") public void testSecondBaseIsZero() { BaseConverter baseConverter = new BaseConverter(10, new int[]{7}); @@ -176,6 +196,7 @@ public void testSecondBaseIsZero() { @Disabled("Remove to run test") @Test + @DisplayName("output base is negative") public void testSecondBaseIsNegative() { BaseConverter baseConverter = new BaseConverter(2, new int[]{1}); diff --git a/exercises/practice/allergies/src/test/java/AllergiesTest.java b/exercises/practice/allergies/src/test/java/AllergiesTest.java index 851b40656..cd0ae5cf7 100644 --- a/exercises/practice/allergies/src/test/java/AllergiesTest.java +++ b/exercises/practice/allergies/src/test/java/AllergiesTest.java @@ -1,4 +1,5 @@ import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -9,6 +10,7 @@ public class AllergiesTest { // Testing for eggs allergy @Test + @DisplayName("not allergic to anything") public void eggsNotAllergicToAnything() { Allergies allergies = new Allergies(0); @@ -17,6 +19,7 @@ public void eggsNotAllergicToAnything() { @Disabled("Remove to run test") @Test + @DisplayName("allergic only to eggs") public void eggsAllergicOnlyToEggs() { Allergies allergies = new Allergies(1); @@ -25,6 +28,7 @@ public void eggsAllergicOnlyToEggs() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to eggs and something else") public void eggsAllergicToEggsAndSomethingElse() { Allergies allergies = new Allergies(3); @@ -33,6 +37,7 @@ public void eggsAllergicToEggsAndSomethingElse() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to something, but not eggs") public void eggsAllergicToSomethingButNotEggs() { Allergies allergies = new Allergies(2); @@ -41,6 +46,7 @@ public void eggsAllergicToSomethingButNotEggs() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to everything") public void eggsAllergicToEverything() { Allergies allergies = new Allergies(255); @@ -51,6 +57,7 @@ public void eggsAllergicToEverything() { // Testing for peanuts allergy @Test + @DisplayName("not allergic to anything") public void peanutsNotAllergicToAnything() { Allergies allergies = new Allergies(0); @@ -59,6 +66,7 @@ public void peanutsNotAllergicToAnything() { @Disabled("Remove to run test") @Test + @DisplayName("allergic only to peanuts") public void peanutsAllergicOnlyToPeanuts() { Allergies allergies = new Allergies(2); @@ -67,6 +75,7 @@ public void peanutsAllergicOnlyToPeanuts() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to peanuts and something else") public void peanutsAllergicToPeanutsAndSomethingElse() { Allergies allergies = new Allergies(7); @@ -75,6 +84,7 @@ public void peanutsAllergicToPeanutsAndSomethingElse() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to something, but not peanuts") public void peanutsAllergicToSomethingButNotPeanuts() { Allergies allergies = new Allergies(5); @@ -83,6 +93,7 @@ public void peanutsAllergicToSomethingButNotPeanuts() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to everything") public void peanutsAllergicToEverything() { Allergies allergies = new Allergies(255); @@ -93,6 +104,7 @@ public void peanutsAllergicToEverything() { // Testing for shellfish allergy @Test + @DisplayName("not allergic to anything") public void shellfishNotAllergicToAnything() { Allergies allergies = new Allergies(0); @@ -101,6 +113,7 @@ public void shellfishNotAllergicToAnything() { @Disabled("Remove to run test") @Test + @DisplayName("allergic only to shellfish") public void shellfishAllergicOnlyToShellfish() { Allergies allergies = new Allergies(4); @@ -109,6 +122,7 @@ public void shellfishAllergicOnlyToShellfish() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to shellfish and something else") public void shellfishAllergicToShellfishAndSomethingElse() { Allergies allergies = new Allergies(14); @@ -117,6 +131,7 @@ public void shellfishAllergicToShellfishAndSomethingElse() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to something, but not shellfish") public void shellfishAllergicToSomethingButNotShellfish() { Allergies allergies = new Allergies(10); @@ -125,6 +140,7 @@ public void shellfishAllergicToSomethingButNotShellfish() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to everything") public void shellfishAllergicToEverything() { Allergies allergies = new Allergies(255); @@ -135,6 +151,7 @@ public void shellfishAllergicToEverything() { // Testing for strawberries allergy @Test + @DisplayName("not allergic to anything") public void strawberriesNotAllergicToAnything() { Allergies allergies = new Allergies(0); @@ -143,6 +160,7 @@ public void strawberriesNotAllergicToAnything() { @Disabled("Remove to run test") @Test + @DisplayName("allergic only to strawberries") public void strawberriesAllergicOnlyToStrawberries() { Allergies allergies = new Allergies(8); @@ -151,6 +169,7 @@ public void strawberriesAllergicOnlyToStrawberries() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to strawberries and something else") public void strawberriesAllergicToStrawberriesAndSomethingElse() { Allergies allergies = new Allergies(28); @@ -159,6 +178,7 @@ public void strawberriesAllergicToStrawberriesAndSomethingElse() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to something, but not strawberries") public void strawberriesAllergicToSomethingButNotStrawberries() { Allergies allergies = new Allergies(20); @@ -167,6 +187,7 @@ public void strawberriesAllergicToSomethingButNotStrawberries() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to everything") public void strawberriesAllergicToEverything() { Allergies allergies = new Allergies(255); @@ -177,6 +198,7 @@ public void strawberriesAllergicToEverything() { // Testing for tomatoes allergy @Test + @DisplayName("not allergic to anything") public void tomatoesNotAllergicToAnything() { Allergies allergies = new Allergies(0); @@ -185,6 +207,7 @@ public void tomatoesNotAllergicToAnything() { @Disabled("Remove to run test") @Test + @DisplayName("allergic only to tomatoes") public void tomatoesAllergicOnlyToTomatoes() { Allergies allergies = new Allergies(16); @@ -193,6 +216,7 @@ public void tomatoesAllergicOnlyToTomatoes() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to tomatoes and something else") public void tomatoesAllergicToTomatoesAndSomethingElse() { Allergies allergies = new Allergies(56); @@ -201,6 +225,7 @@ public void tomatoesAllergicToTomatoesAndSomethingElse() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to something, but not tomatoes") public void tomatoesAllergicToSomethingButNotTomatoes() { Allergies allergies = new Allergies(40); @@ -209,6 +234,7 @@ public void tomatoesAllergicToSomethingButNotTomatoes() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to everything") public void tomatoesAllergicToEverything() { Allergies allergies = new Allergies(255); @@ -219,6 +245,7 @@ public void tomatoesAllergicToEverything() { // Testing for chocolate allergy @Test + @DisplayName("not allergic to anything") public void chocolateNotAllergicToAnything() { Allergies allergies = new Allergies(0); @@ -227,6 +254,7 @@ public void chocolateNotAllergicToAnything() { @Disabled("Remove to run test") @Test + @DisplayName("allergic only to chocolate") public void chocolateAllergicOnlyToChocolate() { Allergies allergies = new Allergies(32); @@ -235,6 +263,7 @@ public void chocolateAllergicOnlyToChocolate() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to chocolate and something else") public void chocolateAllergicToChocolateAndSomethingElse() { Allergies allergies = new Allergies(112); @@ -243,6 +272,7 @@ public void chocolateAllergicToChocolateAndSomethingElse() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to something, but not chocolate") public void chocolateAllergicToSomethingButNotChocolate() { Allergies allergies = new Allergies(80); @@ -251,6 +281,7 @@ public void chocolateAllergicToSomethingButNotChocolate() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to everything") public void chocolateAllergicToEverything() { Allergies allergies = new Allergies(255); @@ -261,6 +292,7 @@ public void chocolateAllergicToEverything() { // Testing for pollen allergy @Test + @DisplayName("not allergic to anything") public void pollenNotAllergicToAnything() { Allergies allergies = new Allergies(0); @@ -269,6 +301,7 @@ public void pollenNotAllergicToAnything() { @Disabled("Remove to run test") @Test + @DisplayName("allergic only to pollen") public void pollenAllergicOnlyToPollen() { Allergies allergies = new Allergies(64); @@ -277,6 +310,7 @@ public void pollenAllergicOnlyToPollen() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to pollen and something else") public void pollenAllergicToPollenAndSomethingElse() { Allergies allergies = new Allergies(224); @@ -285,6 +319,7 @@ public void pollenAllergicToPollenAndSomethingElse() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to something, but not pollen") public void pollenAllergicToSomethingButNotPollen() { Allergies allergies = new Allergies(160); @@ -293,6 +328,7 @@ public void pollenAllergicToSomethingButNotPollen() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to everything") public void pollenAllergicToEverything() { Allergies allergies = new Allergies(255); @@ -303,6 +339,7 @@ public void pollenAllergicToEverything() { // Testing for cats allergy @Test + @DisplayName("not allergic to anything") public void catsNotAllergicToAnything() { Allergies allergies = new Allergies(0); @@ -311,6 +348,7 @@ public void catsNotAllergicToAnything() { @Disabled("Remove to run test") @Test + @DisplayName("allergic only to cats") public void catsAllergicOnlyToCats() { Allergies allergies = new Allergies(128); @@ -319,6 +357,7 @@ public void catsAllergicOnlyToCats() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to cats and something else") public void catsAllergicToCatsAndSomethingElse() { Allergies allergies = new Allergies(192); @@ -327,6 +366,7 @@ public void catsAllergicToCatsAndSomethingElse() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to something, but not cats") public void catsAllergicToSomethingButNotCats() { Allergies allergies = new Allergies(64); @@ -335,6 +375,7 @@ public void catsAllergicToSomethingButNotCats() { @Disabled("Remove to run test") @Test + @DisplayName("allergic to everything") public void catsAllergicToEverything() { Allergies allergies = new Allergies(255); @@ -346,6 +387,7 @@ public void catsAllergicToEverything() { @Disabled("Remove to run test") @Test + @DisplayName("no allergies") public void listNoAllergies() { Allergies allergies = new Allergies(0); @@ -354,6 +396,7 @@ public void listNoAllergies() { @Disabled("Remove to run test") @Test + @DisplayName("just eggs") public void listJustEggs() { Allergies allergies = new Allergies(1); @@ -363,6 +406,7 @@ public void listJustEggs() { @Disabled("Remove to run test") @Test + @DisplayName("just peanuts") public void listJustPeanuts() { Allergies allergies = new Allergies(2); @@ -372,6 +416,7 @@ public void listJustPeanuts() { @Disabled("Remove to run test") @Test + @DisplayName("just strawberries") public void listJustStrawberries() { Allergies allergies = new Allergies(8); @@ -381,6 +426,7 @@ public void listJustStrawberries() { @Disabled("Remove to run test") @Test + @DisplayName("eggs and peanuts") public void listEggsAndPeanuts() { Allergies allergies = new Allergies(3); @@ -392,6 +438,7 @@ public void listEggsAndPeanuts() { @Disabled("Remove to run test") @Test + @DisplayName("more than eggs but not peanuts") public void listoMoreThanEggsButNotPeanuts() { Allergies allergies = new Allergies(5); @@ -403,6 +450,7 @@ public void listoMoreThanEggsButNotPeanuts() { @Disabled("Remove to run test") @Test + @DisplayName("lots of stuff") public void listManyAllergies() { Allergies allergies = new Allergies(248); @@ -417,6 +465,7 @@ public void listManyAllergies() { @Disabled("Remove to run test") @Test + @DisplayName("everything") public void listEverything() { Allergies allergies = new Allergies(255); @@ -434,6 +483,7 @@ public void listEverything() { @Disabled("Remove to run test") @Test + @DisplayName("no allergen score parts") public void listNoAllergenScoreParts() { Allergies allergies = new Allergies(509); @@ -450,6 +500,7 @@ public void listNoAllergenScoreParts() { @Disabled("Remove to run test") @Test + @DisplayName("no allergen score parts without highest valid score") public void listNoAllergenScorePartsWithoutHighestValidScore() { Allergies allergies = new Allergies(257);