Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

similar-asserts

> 编程语言
Open source

Provides assert_eq! like macros with colorized diff output

170 stars0 likes1 views
WebsiteGitHub

About

Provides assert_eq! like macros with colorized diff output

similar-asserts

similar-asserts is a crate that enhances the default assertion experience by using similar for diffing. It supports comparing either Debug or Serialize representations of values. On failed assertions it renders out a colorized diff to the terminal.

rust
fn main() {
    let reference = vec![1, 2, 3, 4];
    similar_asserts::assert_eq!(reference, (0..4).collect::>());
}

Related Projects

  • insta snapshot testing library
  • similar diffing library

License and Links

  • Documentation
  • Issue Tracker
  • Examples
  • License: Apache-2.0

Issues· 4 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言