Use assert_eq! rather than assert! where possible
This commit is contained in:
parent
3acf37897a
commit
cc57ca012a
641 changed files with 2809 additions and 2809 deletions
|
@ -19,5 +19,5 @@ fn select<'r>(x: &'r Option<int>, y: &'r Option<int>) -> &'r Option<int> {
|
|||
pub fn main() {
|
||||
let x = None;
|
||||
let y = Some(3);
|
||||
assert!(select(&x, &y).get() == 3);
|
||||
assert_eq!(select(&x, &y).get(), 3);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue