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

@@ -31,13 +31,13 @@ fn test_select() {
}
}
// Use Gauß' formula
expected_sum := i64(30000) * (30000 - 1) / 2
expected_sum := i64(30000) * (30000 - 1) / 2
assert sum == expected_sum
mut sumrec := <- chsum
mut sumrec := <-chsum
// Empty receive buffer
for _ in 0 .. recch.cap {
sumrec += <- recch
sumrec += <-recch
}
assert sumrec == i64(30000 + recch.cap) * (30000 + recch.cap - 1) / 2
}