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:
@@ -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
|
||||
|
Reference in New Issue
Block a user