Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gechandesu committed Dec 28, 2024
1 parent 946e895 commit 0b8cecd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 27 deletions.
38 changes: 15 additions & 23 deletions vlib/v/slow_tests/inout/dump_expression.out
Original file line number Diff line number Diff line change
@@ -1,36 +1,28 @@
[vlib/v/slow_tests/inout/dump_expression.vv:5] 1: 1
[vlib/v/slow_tests/inout/dump_expression.vv:10] 'a': a
[vlib/v/slow_tests/inout/dump_expression.vv:34] a: Aa{
log: &log.Logger(log.Log{
level: disabled
output_label: ''
ofile: os.File{
cfile: 0
fd: 0
is_opened: false
}
output_target: console
time_format: tf_rfc3339_micro
custom_time_format: 'MMMM Do YY N kk:mm:ss A'
short_tag: false
always_flush: false
output_file_name: ''
})
[vlib/v/slow_tests/inout/dump_expression.vv:4] 1: 1
[vlib/v/slow_tests/inout/dump_expression.vv:9] 'a': a
[vlib/v/slow_tests/inout/dump_expression.vv:33] a: Aa{
cmd: &os.Command{
f: 0
eof: false
exit_code: 0
path: ''
redirect_stdout: false
}
}
[vlib/v/slow_tests/inout/dump_expression.vv:35] p: Point{
[vlib/v/slow_tests/inout/dump_expression.vv:34] p: Point{
x: 1
y: 2
z: 3
}
[vlib/v/slow_tests/inout/dump_expression.vv:36] p_mut: Point{
[vlib/v/slow_tests/inout/dump_expression.vv:35] p_mut: Point{
x: 1
y: 2
z: 3
}
[vlib/v/slow_tests/inout/dump_expression.vv:37] p_ptr: &Point{
[vlib/v/slow_tests/inout/dump_expression.vv:36] p_ptr: &Point{
x: 1
y: 2
z: 3
}
[vlib/v/slow_tests/inout/dump_expression.vv:48] os.file_name(vfile): dump_expression.vv
[vlib/v/slow_tests/inout/dump_expression.vv:51] f.read(mut buf): 10
[vlib/v/slow_tests/inout/dump_expression.vv:47] os.file_name(vfile): dump_expression.vv
[vlib/v/slow_tests/inout/dump_expression.vv:50] f.read(mut buf): 10
7 changes: 3 additions & 4 deletions vlib/v/slow_tests/inout/dump_expression.vv
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import log

fn dump_of_int() {
x := dump(1) + 1
Expand All @@ -19,16 +18,16 @@ mut:
}

struct Aa {
log &log.Logger
cmd &os.Command
}

fn dump_of_struct() {
p := Point{1, 2, 3}
mut p_mut := Point{1, 2, 3}
p_ptr := &Point{1, 2, 3}
l := &log.Log{}
c := &os.Command{}
a := Aa{
log: l
cmd: c
}

dump(a)
Expand Down

0 comments on commit 0b8cecd

Please sign in to comment.