From ea77b98da3f321069ae136a241a2d266c2b28bd7 Mon Sep 17 00:00:00 2001
From: Ed Page <eopage@gmail.com>
Date: Thu, 8 Feb 2024 06:19:06 -0600
Subject: [PATCH] test(complete): Make it order independent

---
 clap_complete/tests/testsuite/bash.rs | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/clap_complete/tests/testsuite/bash.rs b/clap_complete/tests/testsuite/bash.rs
index 937f112cfcd..61f6ef12907 100644
--- a/clap_complete/tests/testsuite/bash.rs
+++ b/clap_complete/tests/testsuite/bash.rs
@@ -222,7 +222,6 @@ fn complete() {
         );
     }
 
-    // Issue 5313 (https://github.com/clap-rs/clap/issues/5313)
     {
         use std::fs::File;
         use std::path::Path;
@@ -234,13 +233,11 @@ fn complete() {
         File::create(Path::new(testdir_path).join("baz\tqux.txt")).unwrap();
 
         let input = format!(
-            "exhaustive hint --file {}/\t\t",
+            "exhaustive hint --file {}/b\t",
             testdir_path.to_string_lossy()
         );
-        let expected = r#"% 
-foo bar.txt   baz^Iqux.txt  "#;
         let actual = runtime.complete(input.as_str(), &term).unwrap();
-        snapbox::assert_eq(expected, actual);
+        assert!(!actual.contains("foo"), "Actual output:\n{actual}");
     }
 
     let input = "exhaustive hint --other \t";