Skip to content

ftxqxd/assert_ng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

assert_ng!

This provides an improved assert macro for the Rust programming language, eliminating the need for assert_eq! while also providing equivalents for !=, > and so on.

The basic idea is that if the macro is provided a condition formatted like a == b, it’ll do what assert_eq! does, i.e., print out a and b if the assertion fails. To avoid this functionality, simply surround the condition in parentheses: assert!((a == b)).

About

An improved assert macro for Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages