Hacker News

andrey-1201
Show HN: Should – Expressive Assertions for Go

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


hn-front (c) 2024 voximity
source