tracks/nim/exercises/allergies/allergies_test.nim in trackler-2.2.1.159 vs tracks/nim/exercises/allergies/allergies_test.nim in trackler-2.2.1.160
- old
+ new
@@ -3,22 +3,22 @@
import allergies
test "no allergies means not allergic":
let allergies = Allergies(score: 0)
- check allergies.is_allergic_to("peanuts") == false
- check allergies.is_allergic_to("cats") == false
- check allergies.is_allergic_to("strawberries") == false
+ check allergies.isAllergicTo("peanuts") == false
+ check allergies.isAllergicTo("cats") == false
+ check allergies.isAllergicTo("strawberries") == false
test "is allergic to eggs":
let allergies = Allergies(score: 1)
- check allergies.is_allergic_to("eggs") == true
+ check allergies.isAllergicTo("eggs") == true
test "allergic to eggs in addition to other stuff":
let allergies = Allergies(score: 5)
- check allergies.is_allergic_to("eggs") == true
- check allergies.is_allergic_to("shellfish") == true
- check allergies.is_allergic_to("strawberries") == false
+ check allergies.isAllergicTo("eggs") == true
+ check allergies.isAllergicTo("shellfish") == true
+ check allergies.isAllergicTo("strawberries") == false
test "no allergies at all":
let allergies = Allergies(score: 0)
check allergies.lst == newSeq[string](0)