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

11 lines
124 B
V

struct AA {
a shared []int
}
fn test_shared_str() {
a := AA{
a: [1, 2]
}
assert a.str() == 'AA{\n a: [1, 2]\n}'
}