Len succeeds if actual has the expected length.
(actual Slice, expected int)
| 60 | |
| 61 | // Len succeeds if actual has the expected length. |
| 62 | func Len[Slice ~[]E, E any](actual Slice, expected int) Comparison { |
| 63 | return gotest.Len(actual, expected) |
| 64 | } |
| 65 | |
| 66 | // LenMap succeeds if actual has the expected length. |
| 67 | func LenMap[Map ~map[K]V, K comparable, V any](actual Map, expected int) Comparison { |