Skip to content

Commit

Permalink
[core] Fix typo for godoc
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed May 25, 2016
1 parent 68923c0 commit 151403a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gobottest/gobottest.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ func logFailure(t *testing.T, message string) {
errFunc(t, fmt.Sprintf("%v:%v: %v", s[len(s)-1], line, message))
}

// Assert checks if a and b are equal, emis a t.Errorf if they are not equal.
// Assert checks if a and b are equal, emits a t.Errorf if they are not equal.
func Assert(t *testing.T, a interface{}, b interface{}) {
if !reflect.DeepEqual(a, b) {
logFailure(t, fmt.Sprintf("%v - \"%v\", should equal, %v - \"%v\"",
a, reflect.TypeOf(a), b, reflect.TypeOf(b)))
}
}

// Refute checks if a and b are equal, emis a t.Errorf if they are equal.
// Refute checks if a and b are equal, emits a t.Errorf if they are equal.
func Refute(t *testing.T, a interface{}, b interface{}) {
if reflect.DeepEqual(a, b) {
logFailure(t, fmt.Sprintf("%v - \"%v\", should not equal, %v - \"%v\"",
Expand Down

0 comments on commit 151403a

Please sign in to comment.