avoid "==" in assert! when one of the values is a bool

This commit is contained in:
Tshepang Lekhonkhobe
2016-04-06 06:24:19 +02:00
parent 7ded11a58c
commit 922e666820
5 changed files with 12 additions and 12 deletions

View File

@@ -1708,7 +1708,7 @@ mod tests {
let tmpdir = tmpdir();
let dir = &tmpdir.join("fileinfo_false_on_dir");
check!(fs::create_dir(dir));
assert!(dir.is_file() == false);
assert!(!dir.is_file());
check!(fs::remove_dir(dir));
}