mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-30 03:18:20 +00:00
19 lines
438 B
Plaintext
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
|