From 5e01f673dee42df0aef03a222468264b61b72fe8 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Mon, 20 May 2024 07:28:46 +0200 Subject: [PATCH] vlib, cmd: fix typo `unkown` -> `unknown` (#21535) --- cmd/tools/vtest-self.v | 2 +- vlib/v/checker/tests/alias_type_unknown.out | 3 +++ .../tests/{alias_type_unkown.vv => alias_type_unknown.vv} | 0 vlib/v/checker/tests/alias_type_unkown.out | 3 --- vlib/v/pref/pref_test.v | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 vlib/v/checker/tests/alias_type_unknown.out rename vlib/v/checker/tests/{alias_type_unkown.vv => alias_type_unknown.vv} (100%) delete mode 100644 vlib/v/checker/tests/alias_type_unkown.out diff --git a/cmd/tools/vtest-self.v b/cmd/tools/vtest-self.v index 3b95f3e77..820be2cde 100644 --- a/cmd/tools/vtest-self.v +++ b/cmd/tools/vtest-self.v @@ -379,7 +379,7 @@ fn Config.init(vargs []string, targs []string) !Config { } else { if arg.starts_with('-') { - errs << 'error: unkown flag `${arg}`' + errs << 'error: unknown flag `${arg}`' continue } if !os.is_dir(os.join_path(vroot, arg)) { diff --git a/vlib/v/checker/tests/alias_type_unknown.out b/vlib/v/checker/tests/alias_type_unknown.out new file mode 100644 index 000000000..d2a0b131b --- /dev/null +++ b/vlib/v/checker/tests/alias_type_unknown.out @@ -0,0 +1,3 @@ +vlib/v/checker/tests/alias_type_unknown.vv:1:15: error: unknown type `Bird` + 1 | type Pigeon = Bird + | ~~~~ diff --git a/vlib/v/checker/tests/alias_type_unkown.vv b/vlib/v/checker/tests/alias_type_unknown.vv similarity index 100% rename from vlib/v/checker/tests/alias_type_unkown.vv rename to vlib/v/checker/tests/alias_type_unknown.vv diff --git a/vlib/v/checker/tests/alias_type_unkown.out b/vlib/v/checker/tests/alias_type_unkown.out deleted file mode 100644 index 180169c9a..000000000 --- a/vlib/v/checker/tests/alias_type_unkown.out +++ /dev/null @@ -1,3 +0,0 @@ -vlib/v/checker/tests/alias_type_unkown.vv:1:15: error: unknown type `Bird` - 1 | type Pigeon = Bird - | ~~~~ diff --git a/vlib/v/pref/pref_test.v b/vlib/v/pref/pref_test.v index 54f846db3..a859420dc 100644 --- a/vlib/v/pref/pref_test.v +++ b/vlib/v/pref/pref_test.v @@ -51,11 +51,11 @@ fn test_v_cmds_and_flags() { too_many_targets_res := os.execute('${vexe} ${vroot}/examples/hello_world.v ${vroot}/examples/fizz_buzz.v') assert too_many_targets_res.output.trim_space() == 'Too many targets. Specify just one target: .' - unkown_arg_res := os.execute('${vexe} -xyz') - assert unkown_arg_res.output.trim_space() == 'Unknown argument `-xyz`' + unknown_arg_res := os.execute('${vexe} -xyz') + assert unknown_arg_res.output.trim_space() == 'Unknown argument `-xyz`' - unkown_arg_for_cmd_res := os.execute('${vexe} build-module -xyz ${vroot}/vlib/math') - assert unkown_arg_for_cmd_res.output.trim_space() == 'Unknown argument `-xyz` for command `build-module`' + unknown_arg_for_cmd_res := os.execute('${vexe} build-module -xyz ${vroot}/vlib/math') + assert unknown_arg_for_cmd_res.output.trim_space() == 'Unknown argument `-xyz` for command `build-module`' no_run_files_res := os.execute('${vexe} run') assert no_run_files_res.output.trim_space() == 'v run: no v files listed' -- 2.39.5