mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
tests: update for stricter type checks
This commit is contained in:
parent
4e66c12557
commit
fd4d28b7b6
25 changed files with 88 additions and 76 deletions
|
@ -14,14 +14,14 @@ fn test_long_encoding(){
|
|||
mut s := 0
|
||||
|
||||
ebuffer := malloc( s_encoded.len )
|
||||
for i in 0..repeats {
|
||||
for _ in 0..repeats {
|
||||
resultsize := base64.encode_in_buffer(s_original, ebuffer)
|
||||
s += resultsize
|
||||
assert resultsize == s_encoded.len
|
||||
}
|
||||
|
||||
dbuffer := malloc( s_decoded.len )
|
||||
for i in 0..repeats {
|
||||
for _ in 0..repeats {
|
||||
resultsize := base64.decode_in_buffer(s_encoded, dbuffer)
|
||||
s += resultsize
|
||||
assert resultsize == s_decoded.len
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue