tests: [] fixes
parent
3ab8dc0092
commit
7955181c6c
|
@ -1,4 +1,4 @@
|
||||||
fn main() {
|
fn main() {
|
||||||
l := []int
|
l := []int{}
|
||||||
l << 'test'
|
l << 'test'
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ fn test_fmt() {
|
||||||
mut fmt_bench := benchmark.new_benchmark()
|
mut fmt_bench := benchmark.new_benchmark()
|
||||||
keep_input_files := os.walk_ext('$vroot/vlib/v/fmt/tests', '_keep.vv')
|
keep_input_files := os.walk_ext('$vroot/vlib/v/fmt/tests', '_keep.vv')
|
||||||
expected_input_files := os.walk_ext('$vroot/vlib/v/fmt/tests', '_expected.vv')
|
expected_input_files := os.walk_ext('$vroot/vlib/v/fmt/tests', '_expected.vv')
|
||||||
mut input_files := []string
|
mut input_files := []string{}
|
||||||
input_files << keep_input_files
|
input_files << keep_input_files
|
||||||
input_files << expected_input_files
|
input_files << expected_input_files
|
||||||
fmt_bench.set_total_expected_steps(input_files.len)
|
fmt_bench.set_total_expected_steps(input_files.len)
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
const (
|
const (
|
||||||
x = &Test{}
|
x = &Test{}
|
||||||
y = []&Test
|
y = []&Test{}
|
||||||
z = &[]&Test
|
z = &[]&Test{}
|
||||||
)
|
)
|
||||||
|
|
||||||
fn test_type_ptr() {
|
fn test_type_ptr() {
|
||||||
_ := &Test{}
|
_ := &Test{}
|
||||||
_ := []&Test
|
_ := []&Test{}
|
||||||
_ := &[]&Test
|
_ := &[]&Test{}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Test {
|
struct Test {
|
||||||
|
|
Loading…
Reference in New Issue