Skip to content

Commit 5d02d14

Browse files
spythemanWertzui123
authored andcommitted
tests: fix compiler notices for the REPL test runner, use encoding.hex instead of the compress module in import_alias.repl
1 parent 92f79fe commit 5d02d14

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import compress.zlib as z
2-
z.compress('hello world'.bytes())!
1+
import encoding.hex as z
2+
z.decode('AB09CD')!.hex()
33
===output===
4-
[120, 1, 1, 11, 0, 244, 255, 104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 26, 11, 4, 93]
4+
ab09cd

vlib/v/slow_tests/repl/runner/runner.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub fn new_options() RunnerOptions {
122122
mut wd := os.getwd()
123123
mut files := []string{}
124124
if os.args.len > 1 {
125-
files = os.args[1..]
125+
files = os.args[1..].clone()
126126
} else {
127127
os.chdir(os.dir(vexec)) or {}
128128
wd = os.getwd()
@@ -140,7 +140,7 @@ pub fn new_prod_options() RunnerOptions {
140140
vexec := full_path_to_v(4)
141141
mut files := []string{}
142142
if os.args.len > 1 {
143-
files = os.args[1..]
143+
files = os.args[1..].clone()
144144
} else {
145145
files = os.walk_ext(wd, '.prod.v')
146146
}

0 commit comments

Comments
 (0)