For example, I have this test here
assert.Contains(t, "HELLO WORLD", "hello world)
and I want this to return true. Obviously, I can clean up the string with strings.TrimSpace()
, strings.ReplaceAll()
, and strings.ToLower()
beforehand. Although it gets cumbersome when I have dozens of these. Is there any cleaner way to achieve this? Or can I possibly modify or create a customized assert.NormalizedContains()
? Thank you for the input!