bzr branch
http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
160
by Gustav Hartvigsson
Fixed Base16 encoding and decoding |
1 |
#include "utils.h" |
2 |
#include <SimpleTypeSystem.h> |
|
3 |
#include "test_macros.h" |
|
4 |
||
5 |
int test_utils (void) { |
|
6 |
setup_unit (); |
|
7 |
|
|
8 |
test_case (round_up (5, 2) == 6, "Expected outcome"); |
|
9 |
|
|
10 |
test_case (round_up (7, 4) == 8, "Expected outcome"); |
|
11 |
|
|
12 |
test_case (round_up (5, 4) == 8, "Expected outcome"); |
|
13 |
|
|
14 |
test_case (round_up (14, 5) == 15, "Expected outcome"); |
|
15 |
|
|
16 |
test_case (round_up (11, 5) == 15, "Expected outcome"); |
|
17 |
|
|
18 |
test_case (round_up (2,2) == 2, "Expected outcome"); |
|
19 |
|
|
20 |
end_unit (); |
|
21 |
}
|