mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
Use equality assert macros (#2969)
This commit is contained in:
parent
b692ca7896
commit
9fd92512a2
2 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue