Change Emit -> Marshal, Parse -> Unmarshal to fit in with rest of std library

This commit is contained in:
David Arroyo
2013-07-15 10:21:14 -04:00
parent 10567f459b
commit 459a02c410
3 changed files with 18 additions and 18 deletions

View File

@@ -30,7 +30,7 @@ var mapWriteTests = []struct {
func TestStructWrite(t *testing.T) {
for _, tt := range structWriteTests {
if b, err := Emit(tt.in); err != nil {
if b, err := Marshal(tt.in); err != nil {
t.Error(err)
} else if string(b) != tt.out {
t.Errorf("Wanted %s, got %s", tt.out, string(b))
@@ -42,7 +42,7 @@ func TestStructWrite(t *testing.T) {
func TestMapWrite(t *testing.T) {
for _, tt := range mapWriteTests {
if b, err := Emit(tt.in); err != nil {
if b, err := Marshal(tt.in); err != nil {
t.Error(err)
} else if string(b) != tt.out {
t.Errorf("Wanted %s, got %s", tt.out, string(b))