Permalink
Browse files

use reflect deep equal

  • Loading branch information...
1 parent bc88ef0 commit d1da264d110d3af54f43e09600cbdb01d79b3e31 @nolman nolman committed Mar 28, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests.go
View
@@ -7,6 +7,7 @@ import (
"net/http"
"net/url"
"strings"
+ "reflect"
)
type TestSuite struct {
@@ -96,7 +97,7 @@ func (t *TestSuite) AssertHeader(name, value string) {
}
func (t *TestSuite) AssertEqual(expected interface{}, actual interface{}) {
- if(expected != actual) {
+ if(!reflect.DeepEqual(expected, actual)) {
panic(fmt.Errorf("(expected) %v != %v (actual)", expected, actual))
}
}

0 comments on commit d1da264

Please sign in to comment.