mirror of
https://github.com/vlang/v.git
synced 2025-09-09 07:15:50 -04:00
tests: fix compiler notices for the REPL test runner, use encoding.hex
instead of the compress
module in import_alias.repl
This commit is contained in:
parent
8b96175303
commit
5c35e9b902
@ -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
|
||||
|
@ -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()
|
||||
@ -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')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user