Skip to content

Commit

Permalink
Merge pull request #647 from leenipper/update-6-generators-use-Header
Browse files Browse the repository at this point in the history
Update 6 exercise test case generators to use .Header
  • Loading branch information
leenipper authored Apr 25, 2017
2 parents 463126c + 25afc7f commit 6544333
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 24 deletions.
4 changes: 1 addition & 3 deletions exercises/connect/.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 connect
// Source: {{.Ori}}
{{if .Commit}}// Commit: {{.Commit}}
{{end}}
{{.Header}}
var testCases = []struct {
description string
Expand Down
3 changes: 2 additions & 1 deletion exercises/connect/cases_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package connect

// Source: exercism/x-common
// Commit: 038124b triangle: Add JSON test data
// Commit: 327db7f connect: Fix canonical-data.json formatting
// x-common version: 1.0.0

var testCases = []struct {
description string
Expand Down
4 changes: 1 addition & 3 deletions exercises/meetup/.meta/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ type js struct {
// template applied to above data structure generates the Go test cases
var tmpl = `package meetup
// Source: {{.Ori}}
{{if .Commit}}// Commit: {{.Commit}}
{{end}}
{{.Header}}
import "time"
Expand Down
3 changes: 2 additions & 1 deletion exercises/meetup/cases_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package meetup

// Source: exercism/x-common
// Commit: b237b7b Merge pull request #124 from soniakeys/meetup-common-tests
// Commit: fe9630e meetup: Fix canonical-data.json formatting
// x-common version: 1.0.0

import "time"

Expand Down
4 changes: 1 addition & 3 deletions exercises/rna-transcription/.meta/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ type js struct {
// readme and have no biological basis and so are not converted here.
var tmpl = `package strand
// Source: {{.Ori}}
{{if .Commit}}// Commit: {{.Commit}}
{{end}}
{{.Header}}
var rnaTests = []struct {
input string
Expand Down
3 changes: 2 additions & 1 deletion exercises/rna-transcription/cases_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package strand

// Source: exercism/x-common
// Commit: 6985644 Merge pull request #121 from mikeyjcat/add-roman-numerals-test-definition
// Commit: 0b20fff rna-transcription: Fix canonical-data.json formatting
// x-common version: 1.0.0

var rnaTests = []struct {
input string
Expand Down
4 changes: 1 addition & 3 deletions exercises/roman-numerals/.meta/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ type js struct {
// template applied to above data structure generates the Go test cases
var tmpl = `package romannumerals
// Source: {{.Ori}}
{{if .Commit}}// Commit: {{.Commit}}
{{end}}
{{.Header}}
type romanNumeralTest struct {
arabic int
Expand Down
3 changes: 2 additions & 1 deletion exercises/roman-numerals/cases_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package romannumerals

// Source: exercism/x-common
// Commit: 6985644 Merge pull request #121 from mikeyjcat/add-roman-numerals-test-definition
// Commit: 070e8d5 roman-numerals: Fix canonical-data.json formatting
// x-common version: 1.0.0

type romanNumeralTest struct {
arabic int
Expand Down
4 changes: 1 addition & 3 deletions exercises/transpose/.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 transpose
// Source: {{.Ori}}
{{if .Commit}}// Commit: {{.Commit}}
{{end}}
{{.Header}}
var testCases = []struct {
description string
Expand Down
3 changes: 2 additions & 1 deletion exercises/transpose/cases_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package transpose

// Source: exercism/x-common
// Commit: cda8f98 Create new exercises structure
// Commit: 6dba022 transpose: Fix canonical-data.json formatting
// x-common version: 1.0.0

var testCases = []struct {
description string
Expand Down
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 6544333

Please sign in to comment.