Skip to content

Commit 6462172

Browse files
committed
test: coverage
1 parent b5c0c45 commit 6462172

File tree

1 file changed

+12
-3
lines changed
  • crates/nu-cli/tests/completions

1 file changed

+12
-3
lines changed

crates/nu-cli/tests/completions/mod.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,21 @@ fn dotnu_completions() {
275275

276276
// Test nested nu script
277277
#[cfg(windows)]
278-
let completion_str = "use `.\\dir_module\\sub module\\".to_string();
278+
let completion_str = "use `.\\dir_module\\".to_string();
279279
#[cfg(not(windows))]
280-
let completion_str = "use `./dir_module/sub module/".to_string();
280+
let completion_str = "use `./dir_module/".to_string();
281281
let suggestions = completer.complete(&completion_str, completion_str.len());
282282

283-
match_suggestions(&vec!["sub.nu".into()], &suggestions);
283+
match_suggestions(
284+
&vec![
285+
"mod.nu".into(),
286+
#[cfg(windows)]
287+
"sub module\\".into(),
288+
#[cfg(not(windows))]
289+
"sub module/`".into(),
290+
],
291+
&suggestions,
292+
);
284293

285294
// Test nested nu script, with ending '`'
286295
#[cfg(windows)]

0 commit comments

Comments
 (0)