Skip to content

Commit

Permalink
Merge pull request #483 from tleen/allergies/test-consistency
Browse files Browse the repository at this point in the history
allergies: extracted test version test as its own function, see #470
  • Loading branch information
robphoenix authored Feb 4, 2017
2 parents ceca9ce + e434bf3 commit 9e06263
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion exercises/allergies/allergies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ var allergiesTests = []struct {
{[]string{"eggs", "shellfish", "strawberries", "tomatoes", "chocolate", "pollen", "cats"}, 509},
}

func TestAllergies(t *testing.T) {
func TestTestVersion(t *testing.T) {
if testVersion != targetTestVersion {
t.Fatalf("Found testVersion = %v, want %v", testVersion, targetTestVersion)
}
}

func TestAllergies(t *testing.T) {
for _, test := range allergiesTests {
actual := Allergies(test.input)
sort.Strings(actual)
Expand Down

0 comments on commit 9e06263

Please sign in to comment.