blob: 341aba51e65fc1c47cdf2b4196e8f4d3779776dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#include "./pke-at-test-dummy.h"
#include "pke/pk.h"
int dummy_test_001() {
PK_TEST_ASSERT_EQ_RET(14, 9 + 5);
return 0;
}
int dummy_test_002() {
// PK_TEST_ASSERT_EQ_RET(15, 9 + 5);
PK_TEST_ASSERT_EQ_RET(14, 9 + 5);
return 0;
}
struct pk_test_group *pke_at_test_get_dummy() {
static pk_test_group g{};
static const unsigned char n_tests = 2;
static pk_test tests[n_tests] = {
{
.title = "dummy_test_001",
.func = dummy_test_001,
.expected_result = 0,
},
{
.title = "dummy_test_002",
.func = dummy_test_002,
.expected_result = 0,
},
};
g.title = "dummy-tests";
g.group_setup = nullptr;
g.group_teardown = nullptr;
g.test_setup = nullptr;
g.test_teardown = nullptr;
g.tests = tests;
g.n_tests = n_tests;
return &g;
}
|