Compare commits

..

No commits in common. "a127b24e62f05b02802a69ce27999611ac78f086" and "c08a739158c7eda24cb86dcc9c7a4c57d720112e" have entirely different histories.

2 changed files with 2 additions and 20 deletions

View File

@ -1,5 +1,5 @@
package goext package goext
const GoextVersion = "0.0.269" const GoextVersion = "0.0.268"
const GoextVersionTimestamp = "2023-09-25T09:18:22+0200" const GoextVersionTimestamp = "2023-09-21T16:29:23+0200"

View File

@ -28,24 +28,6 @@ func AssertDeepEqual[T any](t *testing.T, actual T, expected T) {
} }
} }
func AssertSetDeepEqual[T any](t *testing.T, actual []T, expected []T) {
t.Helper()
if len(actual) != len(expected) {
t.Errorf("values differ in length: Actual (n=%d): '%v', Expected (n=%d): '%v'", len(actual), actual, len(expected), expected)
}
for _, a := range expected {
found := false
for _, b := range actual {
found = found || reflect.DeepEqual(a, b)
}
if !found {
t.Errorf("values differ: Element '%v' not found. Actual: '%v', Expected: '%v'", a, actual, expected)
return
}
}
}
func AssertNotDeepEqual[T any](t *testing.T, actual T, expected T) { func AssertNotDeepEqual[T any](t *testing.T, actual T, expected T) {
t.Helper() t.Helper()
if !reflect.DeepEqual(actual, expected) { if !reflect.DeepEqual(actual, expected) {