Skip to content

Commit

Permalink
#58 Use go-test/deep instead of reflect
Browse files Browse the repository at this point in the history
  • Loading branch information
zshamrock committed May 6, 2018
1 parent db75170 commit 7e23233
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
package config

import (
"reflect"
"testing"

"github.com/go-test/deep"
"github.com/zshamrock/vmx/core"
)

Expand Down Expand Up @@ -40,9 +40,7 @@ func TestReadConfig(t *testing.T) {
WorkingDir: "",
},
}
equal := reflect.DeepEqual(commands, expected)
if !equal {
t.Errorf("Read commands %v from the 'commands' config file don't match expected commands %v",
commands, expected)
if diff := deep.Equal(commands, expected); diff != nil {
t.Error(diff)
}
}

0 comments on commit 7e23233

Please sign in to comment.