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

  • Committer: Gustav Hartvigsson
  • Date: 2017-01-24 20:55:19 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20170124205519-gtr18o3dwbunrrnx
* Fixed the tests in the CMake file
* Made doxygen output static declarations.
* Started work on SApplication
* Played with BaseN.c
  * Now it is a lil' bit better
* Spilt defs.h
  * Added types.h
    * Started work on the full typesystem.
      (Still needs testing)
  * Added primes.[c,h]
    * Contains some static array with primes.
      ("Good" primes, and all primes up to 5 000.
    * And helper functions related to Primes (Needs Tests).
* fixed s_dynamic_array_dump_array.
  (The old version did not make much sense)
* removed some functions from DymanicArray.c
* fixed compiler warnings in Mainloop.c
* removed s_map_(de)serialize_json functions.
* Made s_thread_status_get_name be less prone to error
  (This due to the C11 standard not specifing what these
   values should be)
* fixed s_thread_run
* fixed s_threa_stop

  TODO:
* Write tests for the s_prime_* functions
* Write tests for the s_type_* functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
  s_object_install_callbacks (obj, TEST_CALLBACK_END, callback_entries);
42
42
 
43
 
  test_case (s_object_notify (obj, "test1", NULL) == 2,
 
43
  test_case ((slong)s_object_notify (obj, "test1", NULL) == 2,
44
44
            "the output from the callback is the expected value");
45
45
 
46
46
  sint * output = s_malloc (sizeof (sint));
47
47
 
48
48
  s_object_notify (obj, "test2", (spointer)output);
49
49
 
50
 
  test_case (*output != NULL, "The value that was givef vida the user_data"
 
50
  test_case (output !=  NULL, "The value that was givef vida the user_data"
51
51
                              " pointer is not null");
52
52
 
53
53
  test_case (*output == 1337, "The value that was given via the"