Skip to content

Commit

Permalink
Update Allergies to match latest test data. Refs #488 (#594)
Browse files Browse the repository at this point in the history
* Update Allergies to match latest test data. Refs #488

* Run test code through formatter. Refs #488
  • Loading branch information
ricemery authored and ErikSchierboom committed Jan 1, 2019
1 parent a232c8f commit 6a95e7d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion exercises/allergies/src/test/scala/AllergiesTest.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import org.scalatest.{Matchers, FunSuite}

/** @version 1.1.0 */
/** @version 1.2.0 */
class AllergiesTest extends FunSuite with Matchers {

test("Allergen.Peanuts - no allergies means not allergic") {
Expand Down Expand Up @@ -37,6 +37,26 @@ class AllergiesTest extends FunSuite with Matchers {
Allergies.allergicTo(Allergen.Strawberries, 5) should be(false)
}

test("Allergen.Eggs - allergic to strawberries but not peanuts") {
pending
Allergies.allergicTo(Allergen.Eggs, 9) should be(true)
}

test("Allergen.Peanuts - allergic to strawberries but not peanuts") {
pending
Allergies.allergicTo(Allergen.Peanuts, 9) should be(false)
}

test("Allergen.Shellfish - allergic to strawberries but not peanuts") {
pending
Allergies.allergicTo(Allergen.Shellfish, 9) should be(false)
}

test("Allergen.Strawberries - allergic to strawberries but not peanuts") {
pending
Allergies.allergicTo(Allergen.Strawberries, 9) should be(true)
}

test("no allergies at all") {
pending
Allergies.list(0) should be(List())
Expand Down

0 comments on commit 6a95e7d

Please sign in to comment.