File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -120,14 +120,14 @@ macro_rules! assert(
120
120
/// ```
121
121
#[ macro_export]
122
122
macro_rules! assert_eq(
123
- ( $given : expr , $expected : expr) => ( {
124
- match ( & ( $given ) , & ( $expected ) ) {
125
- ( given_val , expected_val ) => {
123
+ ( $left : expr , $right : expr) => ( {
124
+ match ( & ( $left ) , & ( $right ) ) {
125
+ ( left_val , right_val ) => {
126
126
// check both directions of equality....
127
- if !( ( * given_val == * expected_val ) &&
128
- ( * expected_val == * given_val ) ) {
127
+ if !( ( * left_val == * right_val ) &&
128
+ ( * right_val == * left_val ) ) {
129
129
panic!( "assertion failed: `(left == right) && (right == left)` \
130
- (left: `{}`, right: `{}`)", * given_val , * expected_val )
130
+ (left: `{}`, right: `{}`)", * left_val , * right_val )
131
131
}
132
132
}
133
133
}
You can’t perform that action at this time.
0 commit comments