suborbital / vektor

Opinionated production-grade HTTP server framework for Go
Apache License 2.0
82 stars 8 forks source link

VTest: show mismatched values when rune length isn't correct #71

Open cohix opened 2 years ago

cohix commented 2 years ago

When I'm using AssertBodyString, I can get this error: body length mismatch: got 19 runes, want 18 runes

In this case I would like to know what the expected and actual values were so that I don't need to go adding extra prints to see what went wrong (and this likely applies to other Assert* things as well.