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

all: byte.str() => byte.ascii_str()

This commit is contained in:
Alexander Medvednikov
2021-01-05 19:14:35 +01:00
parent fdb6f1ab50
commit 5a70eba8e1
5 changed files with 61 additions and 97 deletions

View File

@ -5,7 +5,7 @@ fn test_clone() {
assert b[0] == 0
assert b[1] == 1
assert b[2] == 2
println(b[1].str() )
println(b[1].ascii_str())
println(typeof(`A`))
x := rune(`A`)
assert x.str() == 'A'
@ -15,5 +15,4 @@ fn test_clone() {
assert typeof(y) == 'rune'
assert y.str() == 'Z'
// assert b[1].str() == '1' TODO
}