Elektrine lite

← Feed

@paulshryock@phpc.social

Post #4118939

2026-07-26 18:58 UTC

I still don't _love_ this API... I think `expect` should be it's own function or maybe an argument to `it`, and then `to_be` should be the function which handles the assertion. That would look like: ```bash it "should compare two words" expect $(to_be yes no) ```

Replies (1)

  • @paulshryock@phpc.social 2026-07-26 19:04

    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 ```

    Open ##4118938