awtk/tests/fscripts/demo_str3.fs
2022-08-23 11:21:48 +08:00

13 lines
346 B
GLSL

var a=""
assert(ulen(a) == 4);
assert(ulen(a+"abc") == 7);
assert(usubstr(a) == '');
assert(usubstr(a,0) == '');
assert(usubstr(a,0,1) == '');
assert(usubstr(a,0,-1) == '');
assert(usubstr(a,-2,-1) == '');
assert(usubstr(a, -3) == '');
assert(usubstr(a, -3, ulen(a)) == '');