Debian Codegraph @

test/system/test_interactions/newer_standards_stuff1.yml

raw symbols SCIP
1 ---
2 #The purpose of this test is to pull in some standard library stuff from C99
3 :cmock:
4 :includes:
5 - "<stdint.h>"
6 - "<limits.h>"
7
8 :systest:
9 :types: |
10 #include <stdint.h>
11 #include <limits.h>
12
13
14 :mockable: |
15 int32_t foo(int32_t a);
16
17 :source:
18 :header: |
19 int8_t function_a(void);
20
21 :code: |
22 int8_t function_a(void) {
23 return (int8_t)(INT_MIN == foo(INT_MAX));
24 }
25
26 :tests:
27 :common: |
28 void setUp(void) {}
29 void tearDown(void) {}
30
31 :units:
32 - :pass: TRUE
33 :should: 'handle handle a simple comparison of C99 types which pass'
34 :code: |
35 test()
36 {
37 foo_ExpectAndReturn(INT_MAX, INT_MIN);
38
39 TEST_ASSERT_TRUE(function_a());
40 }
41
42 - :pass: FALSE
43 :should: 'handle handle a simple comparison of C99 types which fail'
44 :code: |
45 test()
46 {
47 foo_ExpectAndReturn(INT_MIN, INT_MIN);
48
49 TEST_ASSERT_TRUE(function_a());
50 }
51
52 ...