Skip to content

Commit

Permalink
word-count: move version testing into own function
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Phoenix committed Feb 6, 2017
1 parent 7f846c6 commit 1ac699d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion exercises/word-count/word_count_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ import (

const targetTestVersion = 3

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

func TestWordCount(t *testing.T) {
for _, tt := range testCases {
expected := tt.output
actual := WordCount(tt.input)
Expand Down

0 comments on commit 1ac699d

Please sign in to comment.