Compare commits

...

2 Commits

Author SHA1 Message Date
5f5f0e44f0 v0.0.267 fix AssertDeepEqual
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 50s
2023-09-21 14:15:02 +02:00
6e6797eac5 fix AssertDeepEqual 2023-09-21 14:14:51 +02:00
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.266"
const GoextVersion = "0.0.267"
const GoextVersionTimestamp = "2023-09-21T13:08:13+0200"
const GoextVersionTimestamp = "2023-09-21T14:15:02+0200"

View File

@ -21,14 +21,14 @@ func AssertNotEqual[T comparable](t *testing.T, actual T, expected T) {
}
}
func AssertDeepEqual[T comparable](t *testing.T, actual T, expected T) {
func AssertDeepEqual[T any](t *testing.T, actual T, expected T) {
t.Helper()
if reflect.DeepEqual(actual, expected) {
t.Errorf("values differ: Actual: '%v', Expected: '%v'", actual, expected)
}
}
func AssertNotDeepEqual[T comparable](t *testing.T, actual T, expected T) {
func AssertNotDeepEqual[T any](t *testing.T, actual T, expected T) {
t.Helper()
if !reflect.DeepEqual(actual, expected) {
t.Errorf("values do not differ: Actual: '%v', Expected: '%v'", actual, expected)