Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
danil committed May 23, 2021
1 parent d2f8f74 commit 4a0fc8b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -7,7 +7,7 @@ Goxsd is a tool for generating XML decoding Go structs from an [XSD schema](http

## Installation

go install github.com/danil/goxsd@v0.0.1-r10
go install github.com/danil/goxsd@v0.0.1-r11

## Usage

Expand Down
4 changes: 2 additions & 2 deletions examples/f311sfc0v512/f311_sfc0_512_test.go
Expand Up @@ -10,7 +10,7 @@ import (
)

//go:embed f311_sfc0_512.go
var sourceCode []byte
var code []byte

func TestGenerate(t *testing.T) {
schm, err := goxsd.ParseXSDFile("SFC0_512.xsd")
Expand All @@ -30,7 +30,7 @@ func TestGenerate(t *testing.T) {
t.Fatal(err)
}

expected := string(sourceCode)
expected := string(code)

if buf.String() != expected {
t.Errorf("expected:\n%s\nreceived:\n%s", expected, buf.String())
Expand Down
4 changes: 2 additions & 2 deletions examples/mvk14201912/mvk_1_4_201912_test.go
Expand Up @@ -9,7 +9,7 @@ import (
)

//go:embed mvk_1_4_201912.go
var sourceCode []byte
var code []byte

func TestGenerate(t *testing.T) {
schm, err := goxsd.ParseXSDFile("mvk_1.4_201912.xsd")
Expand All @@ -27,7 +27,7 @@ func TestGenerate(t *testing.T) {
t.Fatal(err)
}

expected := string(sourceCode)
expected := string(code)

if buf.String() != expected {
t.Errorf("expected:\n%s\nreceived:\n%s", expected, buf.String())
Expand Down
4 changes: 2 additions & 2 deletions examples/ncbisubmission/ncbi_submission_test.go
Expand Up @@ -9,7 +9,7 @@ import (
)

//go:embed ncbi_submission.go
var sourceCode []byte
var code []byte

func TestGenerate(t *testing.T) {
schm, err := goxsd.ParseXSDFile("submission-comb.xsd")
Expand All @@ -27,7 +27,7 @@ func TestGenerate(t *testing.T) {
t.Fatal(err)
}

expected := string(sourceCode)
expected := string(code)

if buf.String() != expected {
t.Errorf("expected:\n%s\nreceived:\n%s", expected, buf.String())
Expand Down
4 changes: 2 additions & 2 deletions examples/omu10/omu_1_0_test.go
Expand Up @@ -9,7 +9,7 @@ import (
)

//go:embed omu_1_0.go
var sourceCode []byte
var code []byte

func TestGenerate(t *testing.T) {
schm, err := goxsd.ParseXSDFile("OMU_1.0.xsd")
Expand All @@ -27,7 +27,7 @@ func TestGenerate(t *testing.T) {
t.Fatal(err)
}

expected := string(sourceCode)
expected := string(code)

if buf.String() != expected {
t.Errorf("expected:\n%s\nreceived:\n%s", expected, buf.String())
Expand Down

0 comments on commit 4a0fc8b

Please sign in to comment.