tracks/go/exercises/isbn-verifier/.meta/gen.go in trackler-2.2.1.81 vs tracks/go/exercises/isbn-verifier/.meta/gen.go in trackler-2.2.1.82
- old
+ new
@@ -18,12 +18,14 @@
}
}
type OneCase struct {
Description string
- Input string
- Expected bool
+ Input struct {
+ ISBN string
+ }
+ Expected bool
}
// The JSON structure we expect to be able to unmarshal into
type js struct {
Cases []OneCase
@@ -37,8 +39,8 @@
var testCases = []struct {
isbn string
expected bool
description string
}{
-{{range .J.Cases}}{ "{{.Input}}", {{.Expected}}, "{{.Description}}"},
+{{range .J.Cases}}{ "{{.Input.ISBN}}", {{.Expected}}, "{{.Description}}"},
{{end}}}
`