Skip to content

Commit

Permalink
unexported test is already covered
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed May 12, 2014
1 parent 72196a7 commit d3bb0cb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions encode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ import (
"testing"
)

func TestUnexported(t *testing.T) {
type unexported struct {
unexported int
}
enc := NewEncoder(new(bytes.Buffer))
if err := enc.Encode(&unexported{0}); err != nil {
t.Fatalf("Unexported fields should be ignored when encoding.")
}
}

// XXX(burntsushi)
// I think these tests probably should be removed. They are good, but they
// ought to be obsolete by toml-test.
Expand Down Expand Up @@ -67,7 +57,7 @@ func TestEncode(t *testing.T) {
input: struct{ String string }{"foo"},
wantOutput: `String = "foo"`,
},
"string field and unxeported field": {
"string field and unexported field": {
input: struct {
String string
unexported int
Expand Down

0 comments on commit d3bb0cb

Please sign in to comment.