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

  • Committer: Gustav Hartvigsson
  • Date: 2016-01-25 21:52:28 UTC
  • mto: This revision was merged to the branch mainline in revision 111.
  • Revision ID: gustav.hartvigsson@gmail.com-20160125215228-m9k1we2mplfla6y4
* Getting closer to fixing the callbacks...

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
void
6
6
_internal_print_error (SDynamicArray * arr, schar * str, spointer data) {
7
 
    s_print ("YO!");
 
7
  s_print ("YO!");
8
8
  s_print ("(Error Test): %s\n", str);
9
9
  s_print ("YO!");
10
10
}
15
15
  SDynamicArray * arr = NULL;
16
16
 
17
17
  SError * e = NULL;
18
 
  schar * s = NULL;
19
18
 
20
19
  test_case (s_error_has_error (e) == FALSE, "The error is not set. (NULL)");
21
20
 
22
 
  schar * expected_string = NULL;
23
21
 
24
22
  e = s_error_new ();
25
23
  test_case (e != NULL, "Error is not NULL");