1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-05 14:59:44 +00:00
trezor-firmware/crypto/tools/nem_test_vectors.erb
2019-04-15 19:14:52 +02:00

19 lines
438 B
Plaintext

// test vectors from <%= source_url %>
START_TEST(<%= test_name %>)
{
static const struct {
<% fields.each do |(name, type)| -%>
<%= if type.nil? then 'const char *' else "#{type} " end %><%= name %>;
<% end -%>
} tests[] = {
<% data.each do |values| -%>
{ <% values.each do |value| %><%= value %>, <% end %>},
<% end -%>
};
for (size_t i = 0; i < (sizeof(tests) / sizeof(*tests)); i++) {
// TODO: Implement test
}
}
END_TEST