Skip to content

Commit

Permalink
Merge pull request #143 from MarvinJWendt/122-fix-output-of-assertnot…
Browse files Browse the repository at this point in the history
…kindof
  • Loading branch information
MarvinJWendt committed Apr 7, 2022
2 parents e93c654 + 08f3948 commit 567aa5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</a>

<a href="https://codecov.io/gh/MarvinJWendt/testza">
<!-- unittestcount:start --><img src="https://img.shields.io/badge/Unit_Tests-3203-magenta?style=flat-square" alt="Unit test count"><!-- unittestcount:end -->
<!-- unittestcount:start --><img src="https://img.shields.io/badge/Unit_Tests-3201-magenta?style=flat-square" alt="Unit test count"><!-- unittestcount:end -->
</a>

<a href="https://pkg.go.dev/github.com/MarvinJWendt/testza" target="_blank">
Expand Down
5 changes: 4 additions & 1 deletion assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ func AssertNotKindOf(t testRunner, kind reflect.Kind, object interface{}, msg ..
if internal.IsKind(kind, object) {
internal.Fail(t,
fmt.Sprintf("A value that !!should not be a type of kind %s!! is a type of kind %s.", kind.String(), reflect.TypeOf(object).Kind().String()),
internal.NewObjectsExpectedActual(kind, object),
internal.Objects{
internal.NewObjectsSingleNamed("Should not be", kind)[0],
internal.NewObjectsSingleNamed("Actual", object)[0],
},
msg...,
)
}
Expand Down

0 comments on commit 567aa5e

Please sign in to comment.