1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 23:08:14 +00:00
trezor-firmware/tools/nem_test_vectors.erb
2017-06-05 16:34: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