From 9726ae7dbba4c1b88bba1199b49198fa2dc4dd2d Mon Sep 17 00:00:00 2001 From: wongjiahau Date: Tue, 7 Mar 2023 15:16:53 +0800 Subject: [PATCH] fix(ci/test): failing on Windows --- helix-term/src/ui/explorer.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/helix-term/src/ui/explorer.rs b/helix-term/src/ui/explorer.rs index 267bee8b..51cf0e69 100644 --- a/helix-term/src/ui/explorer.rs +++ b/helix-term/src/ui/explorer.rs @@ -1139,7 +1139,10 @@ mod test_explorer { // 0. Open the add file/folder prompt explorer.handle_events("a").unwrap(); let prompt = &explorer.prompt.as_ref().unwrap().1; - assert_eq!(prompt.prompt(), " New file or folder (ends with '/'): "); + assert_eq!( + prompt.prompt().replace(std::path::MAIN_SEPARATOR, "/"), + " New file or folder (ends with '/'): " + ); assert_eq!( prompt.line().replace(std::path::MAIN_SEPARATOR, "/"), "test_explorer/new_folder/"