v / vlib / encoding / cbor / tests / smoke_test.v
8 lines · 6 sloc · 139 bytes · 468855eef1db0ff73c62be2d1bf176ffa0e1478e
Raw
1module main
2
3import encoding.cbor
4
5fn test_smoke_uint() {
6 out := cbor.encode[u64](u64(0), cbor.EncodeOpts{})!
7 assert out == [u8(0x00)]
8}
9