From 1ac699dec4aa4b5480cb868ce52af145e862696a Mon Sep 17 00:00:00 2001 From: Rob Phoenix Date: Mon, 6 Feb 2017 14:11:11 +0000 Subject: [PATCH] word-count: move version testing into own function see #470 --- exercises/word-count/word_count_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exercises/word-count/word_count_test.go b/exercises/word-count/word_count_test.go index b30f665c2..865507c2c 100644 --- a/exercises/word-count/word_count_test.go +++ b/exercises/word-count/word_count_test.go @@ -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)