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

builtin: add method byte() for string (#11998)

This commit is contained in:
Ken
2021-09-28 16:08:10 +09:00
committed by GitHub
parent c151e075e1
commit a17b943e87
2 changed files with 6 additions and 0 deletions

View File

@@ -418,6 +418,7 @@ fn test_arr_contains() {
fn test_to_num() {
s := '7'
assert s.int() == 7
assert s.byte() == 7
assert s.u64() == 7
f := '71.5 hasdf'
// QTODO