We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d50e3c commit 2e38eedCopy full SHA for 2e38eed
src/lib.rs
@@ -268,11 +268,11 @@ mod unix_tests {
268
std::fs::set_permissions(f, Permissions::from_mode(0)).unwrap();
269
let chmod = Command::new("chmod").arg(chmod_to).arg(f).output().unwrap();
270
println!("chmod {:#?}", chmod);
271
- assert_eq!(expect_mode, to_string(file_mode(f)));
+ assert_eq!(to_string(file_mode(f)), expect_mode);
272
// For good measure, also compare against ls
273
let ls = Command::new("ls").arg("-l").arg(f).output().unwrap();
274
println!("{:#?}", ls);
275
- assert_eq!(Ok(expect_mode), std::str::from_utf8(&ls.stdout[0..10]));
+ assert_eq!(std::str::from_utf8(&ls.stdout[0..10]), Ok(expect_mode));
276
}
277
278
#[test]
0 commit comments