Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Test That! 0.5: A powerful test assertion library for Rust

Дата публикации: 28-06-2026 10:59:01


Test That! lets you write test assertions which precisely specify your intent:
let vec = vec![5, 123, -4];
assert_that!(vec, each(gt(0)));
and get informative, meaningful diagnostics when the tests fail:
Value of: vec
Expected: only contains elements that is greater than 0
Actual: [5, 123, -4],
whose element #2 is -4, which is less than or equal to 0
I've recently published this new crate as a fork of GoogleTest Rust, which I had spearheaded a few years ago while I was at Google. Test That! has a much improved developer experience compared with the original. See my blog post (linked below) for more details.
I'm really keen on getting feedback on this crate. Please give it a try and let me know your experiences!
Crate: crates.io: Rust Package Registry
GitHub: GitHub - hovinen/test-that: Test assertion library for Rust based on the crate GoogleTest · GitHub
Blog post announcement: Blog -- Bradford Hovinen
1 post - 1 participant
Read full topic

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Maplike - Crate with traits for abstract containers and operations on them2706-07-2026
2[Project Announcement] tinyxml2-rs: A high-performance, drop-in Rust implementation of TinyXML25701-07-2026
3Announcing logisheets-rs: a Rust spreadsheet engine with XLSX support7807-07-2026
4Focused library for parsing and formatting ASNs0508-07-2026
5Show and tell : TRAINS: a leaderless, formally-verified total-order broadcast — \~2,400 lines of Rust, checked seven ways7801-07-2026
6Looking for contributors: Rust transparent proxy & protocol parsing project5708-07-2026
7Mqtt-typed-client 0.2: a type-safe async MQTT client on top of rumqttc5708-07-2026
8I wrote my M.Sc. thesis on using the Rust type system in 3D graphics0729-06-2026
9BloomCraft: twelve Bloom filter variants under one API, looking for feedback5606-07-2026

Классификация: Пресс-релизы. Схожих патентов: 0. Схожих новостей: 9. Тональность: 5. Информативность: 7. Источник: users.rust-lang.org.