this post was submitted on 16 Jun 2024
15 points (94.1% liked)

Rust

5888 readers
82 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 4 months ago (1 children)

Felt like making an assertions library since I can't seem to find something quite what I'm looking for.

[–] [email protected] 1 points 4 months ago (1 children)

What is missing in the existing ones?

[–] [email protected] 4 points 4 months ago* (last edited 4 months ago)

I was mostly looking for something more composable, similar to how jest works. Some ideas that I've been working on are assertions like:

expect!([1, 2, 3])
    .all()
    .to_be_less_than(5);

I also have some ideas around futures that I'd like to play with.