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

tests: fix some warnings in preparation for -W test-self

This commit is contained in:
Delyan Angelov
2021-01-31 11:05:17 +02:00
parent 89bf48e3ba
commit 978359a6fc
7 changed files with 72 additions and 45 deletions

View File

@@ -17,11 +17,13 @@ fn test_atoi() {
assert false
}
if x := strconv.atoi('str') {
println(x)
assert false
} else {
assert true
}
if x := strconv.atoi('') {
println(x)
assert false
} else {
assert true