mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
7 lines
123 B
V
7 lines
123 B
V
fn test_strings() {
|
|
s := 'hi'
|
|
mut p := unsafe { s.str + 1 }
|
|
n := unsafe { p - s.str }
|
|
assert typeof(n).name == 'int'
|
|
}
|