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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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