• news
  • newest
  • ask
  • show
  • jobs

8

Show HN: Should – Expressive Assertions for Go

2 days agoandrey-12010 comments

A few months ago I posted this here. Since then I've added a bunch of new assertions: BeSorted, BeSameTime, BeWithin, BeError/BeErrorIs/BeErrorAs, formatted custom messages, and some renames for clarity.

The core idea is still the same — when a test fails, you should immediately know why without having to add debug prints.

https://github.com/Kairum-Labs/should