From 25afc7fc62016e8baa2ba88025770cbe778ed274 Mon Sep 17 00:00:00 2001 From: Lee Nipper Date: Sun, 23 Apr 2017 19:26:53 -0500 Subject: [PATCH] word-count: update generator For issue #641 Use .Header in template. --- exercises/word-count/.meta/gen.go | 4 +--- exercises/word-count/cases_test.go | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/exercises/word-count/.meta/gen.go b/exercises/word-count/.meta/gen.go index 027914026..6311b3288 100644 --- a/exercises/word-count/.meta/gen.go +++ b/exercises/word-count/.meta/gen.go @@ -32,9 +32,7 @@ type js struct { // template applied to above data structure generates the Go test cases var tmpl = `package wordcount -// Source: {{.Ori}} -{{if .Commit}}// Commit: {{.Commit}} -{{end}} +{{.Header}} var testCases = []struct { description string diff --git a/exercises/word-count/cases_test.go b/exercises/word-count/cases_test.go index e4e792286..1f551edea 100644 --- a/exercises/word-count/cases_test.go +++ b/exercises/word-count/cases_test.go @@ -1,7 +1,8 @@ package wordcount // Source: exercism/x-common -// Commit: f2ab262 word-count: replace underscore with space in description (#483) +// Commit: cd26d49 word-count: Make exercise schema-compliant (#634) +// x-common version: 1.0.0 var testCases = []struct { description string