/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to tests/utils.c

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-19 18:52:52 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210119185252-yz4p8rthcr4uv4f5
Fixed Base16 encoding and decoding

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}