mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
builtin: add method byte()
for string (#11998)
This commit is contained in:
parent
c151e075e1
commit
a17b943e87
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue