Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 6 exercise test case generators to use .Header #647

Merged
merged 6 commits into from
Apr 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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