mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Allow exporting extern-wrapped (#10025)
This commit is contained in:
@ -121,7 +121,7 @@ fn command_not_found_error_suggests_typo_fix() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn command_not_found_error_shows_not_found() {
|
||||
fn command_not_found_error_shows_not_found_1() {
|
||||
let actual = nu!(r#"
|
||||
export extern "foo" [];
|
||||
foo
|
||||
@ -129,6 +129,15 @@ fn command_not_found_error_shows_not_found() {
|
||||
assert!(actual.err.contains("'foo' was not found"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn command_not_found_error_shows_not_found_2() {
|
||||
let actual = nu!(r#"
|
||||
export extern-wrapped my-foo [...rest] { foo };
|
||||
my-foo
|
||||
"#);
|
||||
assert!(actual.err.contains("did you mean"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn command_substitution_wont_output_extra_newline() {
|
||||
let actual = nu!(r#"
|
||||
|
Reference in New Issue
Block a user