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

all: ~500 more byte=>u8

This commit is contained in:
Alexander Medvednikov
2022-04-15 18:25:45 +03:00
parent ae6a25f44e
commit fbb9e65c0f
148 changed files with 544 additions and 494 deletions

View File

@@ -181,7 +181,7 @@ fn test_various_map_value() {
mut m9 := map[string]bool{}
m9['test'] = true
assert m9['test'] == true
mut m10 := map[string]byte{}
mut m10 := map[string]u8{}
m10['test'] = u8(0)
assert m10['test'] == u8(0)
mut m11 := map[string]f32{}
@@ -762,7 +762,7 @@ fn test_in_map_literal() {
}
fn test_byte_keys() {
mut m := map[byte]byte{}
mut m := map[u8]u8{}
byte_max := u8(255)
for i in u8(0) .. byte_max {
m[i] = i

View File

@@ -783,11 +783,11 @@ fn test_double_quote_inter() {
assert '$a $b' == '1 2'
}
fn foo(b byte) byte {
fn foo(b u8) u8 {
return b - 10
}
fn filter(b byte) bool {
fn filter(b u8) bool {
return b != `a`
}