forked from extern/nushell
fix some typos (#7773)
# Description Nothing changed, just fix some typos # Tests + Formatting Don't forget to add tests that cover your changes. Make sure you've run and fixed any issues with these commands: - `cargo fmt --all -- --check` to check standard code formatting (`cargo fmt --all` applies these changes) - `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect` to check that you're using the standard code style - `cargo test --workspace` to check that all tests pass # After Submitting If your PR had any user-facing changes, update [the documentation](https://github.com/nushell/nushell.github.io) after the PR is merged, if necessary. This will help us keep the docs up to date. Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
This commit is contained in:
@ -76,7 +76,7 @@ fn filesystem_switch_back_to_previous_working_directory() {
|
||||
// FIXME: jt: needs more work
|
||||
#[ignore]
|
||||
#[test]
|
||||
fn filesytem_change_from_current_directory_using_relative_path_and_dash() {
|
||||
fn filesystem_change_from_current_directory_using_relative_path_and_dash() {
|
||||
Playground::setup("cd_test_4", |dirs, sandbox| {
|
||||
sandbox.within("odin").mkdir("-");
|
||||
|
||||
@ -292,7 +292,7 @@ fn test_change_windows_drive() {
|
||||
|
||||
#[cfg(unix)]
|
||||
#[test]
|
||||
fn cd_permission_deined_folder() {
|
||||
fn cd_permission_denied_folder() {
|
||||
Playground::setup("cd_test_21", |dirs, sandbox| {
|
||||
sandbox.mkdir("banned");
|
||||
let actual = nu!(
|
||||
@ -312,11 +312,11 @@ fn cd_permission_deined_folder() {
|
||||
);
|
||||
});
|
||||
}
|
||||
// FIXME: cd_permission_deined_folder on windows
|
||||
// FIXME: cd_permission_denied_folder on windows
|
||||
#[ignore]
|
||||
#[cfg(windows)]
|
||||
#[test]
|
||||
fn cd_permission_deined_folder() {
|
||||
fn cd_permission_denied_folder() {
|
||||
Playground::setup("cd_test_21", |dirs, sandbox| {
|
||||
sandbox.mkdir("banned");
|
||||
let actual = nu!(
|
||||
|
@ -41,7 +41,7 @@ fn catch_can_access_error_as_dollar_in() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn external_failed_should_be_catched() {
|
||||
fn external_failed_should_be_caught() {
|
||||
let output = nu!(
|
||||
cwd: ".",
|
||||
"try { nu --testbin fail; echo 'success' } catch { echo 'fail' }"
|
||||
@ -66,7 +66,7 @@ fn loop_catch_break_should_show_failed() {
|
||||
cwd: ".",
|
||||
"loop {
|
||||
try { invalid 1;
|
||||
continue; } catch { echo 'failed'; break }
|
||||
continue; } catch { echo 'failed'; break }
|
||||
}
|
||||
"
|
||||
);
|
||||
@ -80,10 +80,10 @@ fn loop_try_ignores_continue() {
|
||||
cwd: ".",
|
||||
"mut total = 0;
|
||||
for i in 0..10 {
|
||||
try { if ($i mod 2) == 0 {
|
||||
continue;}
|
||||
try { if ($i mod 2) == 0 {
|
||||
continue;}
|
||||
$total += 1
|
||||
} catch { echo 'failed'; break }
|
||||
} catch { echo 'failed'; break }
|
||||
}
|
||||
echo $total
|
||||
"
|
||||
|
Reference in New Issue
Block a user