coliru

A minimal, flexible, dotfile installer
git clone https://git.ashermorgan.net/coliru/
Log | Files | Refs | README

commit 04f5f7cecccf4b7ca5b4f2b2dc6a2f7e4ba8b6f2
parent 31d0756fbab9cbe266c12b473b51f79311c85f30
Author: Asher Morgan <59518073+ashermorgan@users.noreply.github.com>
Date:   Sat,  6 Jul 2024 13:13:19 -0700

Fix basic e2e tests for Windows

Diffstat:
Mtests/basic.rs | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/basic.rs b/tests/basic.rs @@ -43,17 +43,17 @@ fn test_basic_bad_arguments() { let (_dirs, mut cmd) = setup_e2e_local("test_basic_bad_arguments"); cmd.args(["--foo", "bar"]); - let expected = "\ + let expected = format!("\ error: unexpected argument '--foo' found tip: to pass '--foo' as a value, use '-- --foo' -Usage: coliru [OPTIONS] <MANIFEST> +Usage: coliru{EXE_SUFFIX} [OPTIONS] <MANIFEST> For more information, try '--help'. -"; +"); let (stdout, stderr, exitcode) = run_command(&mut cmd); - assert_eq!(&stderr, expected); + assert_eq!(&stderr, &expected); assert_eq!(&stdout, ""); assert_eq!(exitcode, Some(2)); }