/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/main.c

  • Committer: Gustav Hartvigsson
  • Date: 2015-04-10 21:36:10 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150410213610-r1q96ym4nmulpax9
* Added a few skeletal functions to Callback.h
* Re-wrote parts of SDynamicArray to be more sane.
  * removed s_dynamic_array_len() and s_dynamic_array_add()
  * added s_dynamic_array_set() and s_dynamic_array_last_item()
  * use calloc instead of malloc.
* added unsubscribe function to SGlobalNotify.
* Added decumentation in Interface.h
* Made s_dbg_print() more helpful.

-- Testing --
* Made test_case() macro more useful.
* added tests for the dynamic array.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#include "refcount.h"
9
9
#include "to_string.h"
10
10
#include "error.h"
 
11
#include "dynamic_array.h"
11
12
 
12
 
#include "SimpleTypeSystem.h"
13
13
 
14
14
int main  (int argc, char ** argv, char ** argp) {
15
15
  setup_suite("SSTS");
17
17
  test_unit (test_refcount, "Refcount");
18
18
  test_unit (test_to_string, "To String");
19
19
  test_unit (test_error, "Error");
 
20
  test_unit (test_dynamic_array, "Dynamic Array");
20
21
  
21
22
  end_suite();
22
23
}