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

9 lines
129 B
V
Raw Normal View History

2019-12-04 13:34:06 +03:00
fn test_cstring(){
w := c'world'
hlen := C.strlen(c'hello')
wlen := C.strlen(w)
assert hlen == 5
assert wlen == 5
2019-12-04 13:34:06 +03:00
}