Use equality assert macros (#2969)

This commit is contained in:
Joseph T. Lyons 2021-01-25 00:16:10 -05:00 committed by GitHub
parent b692ca7896
commit 9fd92512a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -65,7 +65,7 @@ fn multiple_reports_of_multiple_alias() {
);
let count: i32 = actual.out.parse().unwrap();
assert!(count == 2);
assert_eq!(count, 2);
}
#[ignore]
@ -77,7 +77,7 @@ fn multiple_reports_of_multiple_defs() {
);
let count: i32 = actual.out.parse().unwrap();
assert!(count == 2);
assert_eq!(count, 2);
}
//Fails due to ParserScope::add_definition
@ -92,5 +92,5 @@ fn def_only_seen_once() {
);
//count is 2. One custom_command (def) one built in ("wrongly" added)
let count: i32 = actual.out.parse().unwrap();
assert!(count == 1);
assert_eq!(count, 1);
}

View File

@ -602,8 +602,8 @@ mod tests {
let tuple = type_name::<()>();
let tagged_tuple = type_name::<Tagged<()>>();
let tagged_value = type_name::<Value>();
assert!(tuple != tagged_tuple);
assert!(tuple != tagged_value);
assert!(tagged_tuple != tagged_value);
assert_ne!(tuple, tagged_tuple);
assert_ne!(tuple, tagged_value);
assert_ne!(tagged_tuple, tagged_value);
}
}