Skip to content

Commit

Permalink
word-count: update generator
Browse files Browse the repository at this point in the history
For issue exercism#641

Use .Header in template.
  • Loading branch information
leenipper committed Apr 24, 2017
1 parent 538088d commit 25afc7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions exercises/word-count/.meta/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion exercises/word-count/cases_test.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 25afc7f

Please sign in to comment.