Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use reflect deep equal

  • Loading branch information...
commit d1da264d110d3af54f43e09600cbdb01d79b3e31 1 parent bc88ef0
Nolan Evans nolman authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  tests.go
3  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))
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.