Macro ::std::test::assert_eq!(..)

Overview

Assert that the two arguments provided are equal, or cause a vm panic.

The third argument can optionally be used to format a panic message.

Examples

let value = 42;

assert_eq!(value, 42, "Value was not 42, instead it was {}", value);