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

17 lines
299 B
GLSL

var a = array_create_with_str("1,2,3", ",");
assert(a.size == 3);
var d = array_join(a, ":");
assert(d == "1:2:3")
var b = array_dup(a);
assert(b.size == 3);
d = array_join(b, ":");
assert(d == "1:2:3")
var c = array_dup(a, 1, 3);
assert(c.size == 2);
d = array_join(c, ":");
assert(d == "2:3")