v2 / vlib / v / tests / fns / param_fixed_array_const_test.v
12 lines · 9 sloc · 247 bytes · 6ffc9c94b585912c68a41bc8e981e692f4f7855c
Raw
1module main
2
3import crypto.ed25519
4
5fn new_client_hello(public_key [ed25519.public_key_size]u8) {
6 assert public_key.len == ed25519.public_key_size
7 assert public_key.len != 0
8}
9
10fn test_main() {
11 new_client_hello([ed25519.public_key_size]u8{})
12}
13