/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "utils.h"
#include <SimpleTypeSystem.h>
#include "test_macros.h"

int test_utils (void) {
  setup_unit ();
  
  test_case (round_up (5, 2) == 6, "Expected outcome");
  
  test_case (round_up (7, 4) == 8, "Expected outcome");
  
  test_case (round_up (5, 4) == 8, "Expected outcome");
  
  test_case (round_up (14, 5) == 15, "Expected outcome");
  
  test_case (round_up (11, 5) == 15, "Expected outcome");
  
  test_case (round_up (2,2) == 2, "Expected outcome");
  
  end_unit ();
}