v2 / vlib / v / tests / consts / const_from_bytes_test.v
9 lines · 7 sloc · 224 bytes · 6488041a749df9762348d019c4223908c476f2e2
Raw
1type UUID = [16]u8
2
3const codec_test_uuid = UUID([u8(0x6b), 0xa7, 0xb8, 0x10, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, 0x00,
4 0xc0, 0x4f, 0xd4, 0x30, 0xc8]!)
5
6fn test_const_from_bytes() {
7 println(codec_test_uuid)
8 assert true
9}
10