1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: make v test-cleancode test everything by default (#10050)

This commit is contained in:
Delyan Angelov
2021-05-08 13:32:29 +03:00
committed by GitHub
parent cba2cb6b9c
commit 8a380f4699
132 changed files with 3230 additions and 3440 deletions

View File

@@ -1,4 +1,5 @@
const n = 1000
const c = 100
fn f(ch chan int) {
@@ -13,9 +14,8 @@ fn test_push_or_unbuffered() {
go f(ch)
mut j := 0
for {
ch <- j or {
break
}
ch <- j or { break }
j++
}
assert j == n
@@ -26,9 +26,8 @@ fn test_push_or_buffered() {
go f(ch)
mut j := 0
for {
ch <- j or {
break
}
ch <- j or { break }
j++
}
// we don't know how many elements are in the buffer when the channel
@@ -40,9 +39,8 @@ fn test_push_or_buffered() {
fn g(ch chan int, res chan int) {
mut j := 0
for {
ch <- j or {
break
}
ch <- j or { break }
j++
}
println('done $j')