Skip to content

Commit eb2aee5

Browse files
committed
chore(mkdir): fix assert statement formatting in Windows test
Fix rustfmt formatting violation in test_mkdir_control_characters. The multi-line assert statement with OR condition was not properly formatted according to the project's rustfmt configuration. This resolves a CI formatting check failure.
1 parent 5e7c655 commit eb2aee5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/by-util/test_mkdir.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,10 @@ fn test_mkdir_control_characters() {
600600
assert!(!at.dir_exists("a/\"\""));
601601
assert!(!result.succeeded());
602602
// Check for appropriate error message
603-
assert!(result.stderr_str().contains("Invalid argument") ||
604-
result.stderr_str().contains("cannot create directory"));
603+
assert!(
604+
result.stderr_str().contains("Invalid argument")
605+
|| result.stderr_str().contains("cannot create directory")
606+
);
605607
}
606608

607609
// Test single quotes in path - should work on both Unix and Windows

0 commit comments

Comments
 (0)