Skip to content

Commit

Permalink
tests: fix compiler notices for the REPL test runner, use `encoding.h…
Browse files Browse the repository at this point in the history
…ex` instead of the `compress` module in import_alias.repl
  • Loading branch information
spytheman committed Aug 19, 2023
1 parent 8b96175 commit 5c35e9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions vlib/v/slow_tests/repl/import_alias.repl
@@ -1,4 +1,4 @@
import compress.zlib as z
z.compress('hello world'.bytes())!
import encoding.hex as z
z.decode('AB09CD')!.hex()
===output===
[120, 1, 1, 11, 0, 244, 255, 104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 26, 11, 4, 93]
ab09cd
4 changes: 2 additions & 2 deletions vlib/v/slow_tests/repl/runner/runner.v
Expand Up @@ -122,7 +122,7 @@ pub fn new_options() RunnerOptions {
mut wd := os.getwd()
mut files := []string{}
if os.args.len > 1 {
files = os.args[1..]
files = os.args[1..].clone()
} else {
os.chdir(os.dir(vexec)) or {}
wd = os.getwd()
Expand All @@ -140,7 +140,7 @@ pub fn new_prod_options() RunnerOptions {
vexec := full_path_to_v(4)
mut files := []string{}
if os.args.len > 1 {
files = os.args[1..]
files = os.args[1..].clone()
} else {
files = os.walk_ext(wd, '.prod.v')
}
Expand Down

0 comments on commit 5c35e9b

Please sign in to comment.