Follow

Wait, people do this? I have never in my life written a test with the rule "only one assertion allowed."

There are test frameworks like the test egg in that kind of enforce this, but usually you turn that into a set of test groups, and call "test" itself with the same mock or state. 🤔

stackoverflow.blog/2022/11/03/

is pretty good here - assertions there take you to the exact line and column when you run `cargo test` and there's a failure.

Just have good tools I guess? ┐('~`;)┌

Sign in to participate in the conversation

Hometown is adapted from Mastodon, a decentralized social network with no ads, no corporate surveillance, and ethical design.