/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
34 by Gustav Hartvigsson
* Finnished test suite
1
#include <stdlib.h>
2
#include <stdio.h>
3
#include <malloc.h>
4
#include <string.h>
5
#include <stdint.h>
6
121.1.3 by Gustav Hartvigsson
* Made the GC switchable at rutime (once) when compiled with S_USE_GC set.
7
#include <SimpleTypeSystem.h>
8
160 by Gustav Hartvigsson
Fixed Base16 encoding and decoding
9
#include "utils.h"
10
34 by Gustav Hartvigsson
* Finnished test suite
11
#include "test_macros.h"
12
#include "refcount.h"
39 by Gustav Hartvigsson
* Added "check" target for testing.
13
#include "to_string.h"
14
#include "error.h"
47 by Gustav Hartvigsson
* Added a few skeletal functions to Callback.h
15
#include "dynamic_array.h"
109.1.1 by Gustav Hartvigsson
* SMap seems to be broken... Or could it be SObject's Callback stuff? Or SLinkedList?
16
#include "callback.h"
109.1.5 by Gustav Hartvigsson
* Getting closer to fixing the callbacks...
17
#include "linked_list.h"
18
#include "thread.h"
109.1.7 by Gustav Hartvigsson
* Fixed SMap, for the time being...
19
#include "map.h"
138 by Gustav Hartvigsson
* Fixed s_base_16_enc
20
#include "base_n.h"
43 by Gustav Hartvigsson
* Code cleanup
21
34 by Gustav Hartvigsson
* Finnished test suite
22
int main  (int argc, char ** argv, char ** argp) {
109.1.1 by Gustav Hartvigsson
* SMap seems to be broken... Or could it be SObject's Callback stuff? Or SLinkedList?
23
  setup_suite ("SSTS");
116.1.1 by Gustav Hartvigsson
* Implemented the SMainLoop
24
138 by Gustav Hartvigsson
* Fixed s_base_16_enc
25
  s_mm_init (S_MM_TYPE_LIBC);
160 by Gustav Hartvigsson
Fixed Base16 encoding and decoding
26
  
27
  test_unit (test_utils, "Utils");
121.1.3 by Gustav Hartvigsson
* Made the GC switchable at rutime (once) when compiled with S_USE_GC set.
28
39 by Gustav Hartvigsson
* Added "check" target for testing.
29
  test_unit (test_refcount, "Refcount");
30
  test_unit (test_to_string, "To String");
31
  test_unit (test_error, "Error");
47 by Gustav Hartvigsson
* Added a few skeletal functions to Callback.h
32
  test_unit (test_dynamic_array, "Dynamic Array");
109.1.5 by Gustav Hartvigsson
* Getting closer to fixing the callbacks...
33
  test_unit (test_linked_list, "Linked List");
109.1.7 by Gustav Hartvigsson
* Fixed SMap, for the time being...
34
  test_unit (test_map, "Map");
109.1.8 by Gustav Hartvigsson
* Fixed SMap so the callbacks will work... What a single line of code can do..
35
  test_unit (test_callback, "Callback");
161 by Gustav Hartvigsson
Base16[enc,dec] - Can now create byte arrays of fixed size.
36
  test_unit (test_base_16_text, "Base 16 Text");
37
  test_unit (test_base_16_object, "Base 16 Object");
109.1.5 by Gustav Hartvigsson
* Getting closer to fixing the callbacks...
38
  //test_unit (test_thread, "Threading");
109.1.1 by Gustav Hartvigsson
* SMap seems to be broken... Or could it be SObject's Callback stuff? Or SLinkedList?
39
149 by Gustav Hartvigsson
* Fixed tests
40
  s_teardown ();
121.1.3 by Gustav Hartvigsson
* Made the GC switchable at rutime (once) when compiled with S_USE_GC set.
41
109.1.1 by Gustav Hartvigsson
* SMap seems to be broken... Or could it be SObject's Callback stuff? Or SLinkedList?
42
  end_suite ();
34 by Gustav Hartvigsson
* Finnished test suite
43
}