1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 09:58:27 +00:00
trezor-firmware/crypto/tools/nem_test_vectors.erb

19 lines
438 B
Plaintext
Raw Normal View History

2017-05-21 19:52:05 +00:00
// 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