fix test after function rename

This commit is contained in:
Nate Finch 2014-08-05 06:07:25 -04:00 committed by spf13
parent 38c6d9eca3
commit 3cf05f93ef
1 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ func TestRecursiveAliases(t *testing.T) {
RegisterAlias("Roo", "baz")
}
func TestIntoStruct(t *testing.T) {
func TestMarshal(t *testing.T) {
SetDefault("port", 1313)
Set("name", "Steve")
@ -140,7 +140,7 @@ func TestIntoStruct(t *testing.T) {
var C config
err := GetAllIntoStruct(&C)
err := Marshal(&C)
if err != nil {
t.Fatalf("unable to decode into struct, %v", err)
}
@ -148,7 +148,7 @@ func TestIntoStruct(t *testing.T) {
assert.Equal(t, &C, &config{Name: "Steve", Port: 1313})
Set("port", 1234)
err = GetAllIntoStruct(&C)
err = Marshal(&C)
if err != nil {
t.Fatalf("unable to decode into struct, %v", err)
}