mirror of
https://github.com/nushell/nushell.git
synced 2024-11-28 19:33:47 +01:00
Use equality assert macros (#2969)
This commit is contained in:
parent
b692ca7896
commit
9fd92512a2
@ -65,7 +65,7 @@ fn multiple_reports_of_multiple_alias() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
let count: i32 = actual.out.parse().unwrap();
|
let count: i32 = actual.out.parse().unwrap();
|
||||||
assert!(count == 2);
|
assert_eq!(count, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[ignore]
|
#[ignore]
|
||||||
@ -77,7 +77,7 @@ fn multiple_reports_of_multiple_defs() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
let count: i32 = actual.out.parse().unwrap();
|
let count: i32 = actual.out.parse().unwrap();
|
||||||
assert!(count == 2);
|
assert_eq!(count, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Fails due to ParserScope::add_definition
|
//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)
|
//count is 2. One custom_command (def) one built in ("wrongly" added)
|
||||||
let count: i32 = actual.out.parse().unwrap();
|
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 tuple = type_name::<()>();
|
||||||
let tagged_tuple = type_name::<Tagged<()>>();
|
let tagged_tuple = type_name::<Tagged<()>>();
|
||||||
let tagged_value = type_name::<Value>();
|
let tagged_value = type_name::<Value>();
|
||||||
assert!(tuple != tagged_tuple);
|
assert_ne!(tuple, tagged_tuple);
|
||||||
assert!(tuple != tagged_value);
|
assert_ne!(tuple, tagged_value);
|
||||||
assert!(tagged_tuple != tagged_value);
|
assert_ne!(tagged_tuple, tagged_value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user