Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52e958d commit 6565b97Copy full SHA for 6565b97
1 file changed
git-command/tests/command.rs
@@ -44,7 +44,10 @@ mod spawn {
44
.spawn()?
45
.wait_with_output()?;
46
assert!(out.status.success());
47
+ #[cfg(not(windows))]
48
assert_eq!(out.stdout.as_bstr(), "1\n");
49
+ #[cfg(windows)]
50
+ assert_eq!(out.stdout.as_bstr(), "1\r\n");
51
Ok(())
52
}
53
@@ -57,7 +60,10 @@ mod spawn {
57
60
58
61
59
62
63
64
assert_eq!(out.stdout.as_bstr(), "1 2\n");
65
66
+ assert_eq!(out.stdout.as_bstr(), "1 2\r\n");
67
68
69
0 commit comments