[−][src]Macro chek::eq
Panics if the first expression is not strictly equal than the second.
Requires that the values implement PartialEq
and Debug
.
Note: is also aliased as chek::equal!
. A debug-only version is available as
chek::debug_eq!
.
Optionally may take an additional message to display on failure, which is formatted using standard format syntax.
Example
chek::eq!(4, 4); chek::eq!(4, 4, "With a message"); chek::eq!(4, 4, "With a formatted message: {}", "oh no");