Post #4118938
2026-07-26 19:04 UTC
I also don't love having to use shell execution $(like this) to run the assertion.
I think this is the API I'm really after:
```bash
it "should compare two words" expect this to_be this
```
Replies (1)
-
@paulshryock@phpc.social 2026-07-26 19:08
I think I can actually achieve this if I let everything be arguments passed to `it` and lock in the argument order. it: $1 = test case description $2 = expect $3 = first value $4 = assertion type $5 = second value That _could_ work. And then of course I'll want to allow `not` and bump everything else up by one if it's present: ```bash it "should have different words" expect this not to_be that ```