Fixed broken common test

This commit is contained in:
Fredric Silberberg 2014-10-16 18:41:32 -04:00
parent 418be9217b
commit 66a6b29323

View File

@ -3,7 +3,7 @@ package jsh
import "testing" import "testing"
func TestToJson(t *testing.T) { func TestToJson(t *testing.T) {
fixture := JshOutput{[]string{}, []string{}} fixture := JshFrame{[]string{}, []string{}}
json := fixture.ToJson() json := fixture.ToJson()
expected := `{"StdOut":[],"StdErr":[]}` expected := `{"StdOut":[],"StdErr":[]}`
actual := *json actual := *json
@ -11,7 +11,7 @@ func TestToJson(t *testing.T) {
t.Errorf("Empty fixture did not match:\n%s != %s", expected, actual) t.Errorf("Empty fixture did not match:\n%s != %s", expected, actual)
} }
fixture = JshOutput{[]string{"potato!"}, []string{}} fixture = JshFrame{[]string{"potato!"}, []string{}}
json = fixture.ToJson() json = fixture.ToJson()
expected = `{"StdOut":["potato!"],"StdErr":[]}` expected = `{"StdOut":["potato!"],"StdErr":[]}`
actual = *json actual = *json