2026-08-23 01:12 UTC
Just released Best v0.1.7, and this includes a second expectation, `to_throw`.
So now these are the type of tests you can write:
```bash
it "should compare two values" expect 1 to_be 1
it "should throw" expect $([[ 1 == 2 ]]) to_throw
```
https://codeberg.org/paulshryock/best/releases/tag/v0.1.7
Replies (1)
-
@paulshryock@phpc.social 2026-08-24 18:26
As I add more expectations and modifiers like "not" or "and", I'm starting to hit the limits of this API and thinking I should split up tests into multiple function calls instead of a single function call followed by many parameters. So instead of this tests where it's all on one line: ```bash it "should compare two numbers" expect 1 to_be 1 ``` It would become this, where each function call is separated by a semicolon or line: ```bash it "should compare two numbers"; expect 1; to_be 1 ```