Skip to content
Snippets Groups Projects
Commit aeb4778d authored by Luis Kornblueh's avatar Luis Kornblueh
Browse files

Fixed number of arguments for newEvent in C test code.

parent 96e3e271
No related branches found
No related tags found
No related merge requests found
......@@ -82,23 +82,23 @@ main(int argc, char *argv[])
If end date is NULL, it is logically equivalent to infinity. The data-structure will not be allocated any memory and will be a NULL pointer.
*/
struct _event* Ocean = newEvent("Ocean",NULL,NULL,NULL, "PT01M");
struct _event* Ocean = newEvent("Ocean",NULL,NULL,NULL, "PT01M",NULL);
if(Ocean && addNewEventToEventGroup(Ocean,testAllowedGroup))
printf("\nCreated and Added event Ocean.");
struct _event* InEarth = newEvent("InEarth", NULL, NULL, "2050-01-01T00:10:00.000Z", "P01Y");
struct _event* InEarth = newEvent("InEarth", NULL, NULL, "2050-01-01T00:10:00.000Z", "P01Y",NULL);
if(InEarth && addNewEventToEventGroup(InEarth,testAllowedGroup))
printf("\nCreated and Added event InEarth.");
struct _event* Systems = newEvent("Systems", NULL, "2050-01-01T00:05:00.000Z", NULL, "PT30.000S");
struct _event* Systems = newEvent("Systems", NULL, "2050-01-01T00:05:00.000Z", NULL, "PT30.000S", NULL);
if(Systems && addNewEventToEventGroup(Systems,testAllowedGroup))
printf("\nCreated and Added event Systems.");
struct _event* iWillFail1 = newEvent(NULL, "2050-01-01T00:06:00.000Z", "2050-01-01T00:05:00.000Z", "2050-01-01T00:10:00.000Z", "PT30.000S");
struct _event* iWillFail1 = newEvent(NULL, "2050-01-01T00:06:00.000Z", "2050-01-01T00:05:00.000Z", "2050-01-01T00:10:00.000Z", "PT30.000S",NULL);
if(!iWillFail1)
printf("\niWillFail1 event can not be created. Name can not be NULL. Name must be unique. ");
struct _event* iWillFail2 = newEvent("iWillFail2", "2050-01-01T00:06:00.000Z", "2050-01-01T00:05:00.000Z", "2050-01-01T00:10:00.000Z", NULL);
struct _event* iWillFail2 = newEvent("iWillFail2", "2050-01-01T00:06:00.000Z", "2050-01-01T00:05:00.000Z", "2050-01-01T00:10:00.000Z", NULL,NULL);
if(!iWillFail2)
printf("\niWillFail2 event can not be created. Time step can not be null. ");
......@@ -108,16 +108,16 @@ main(int argc, char *argv[])
if(someGroup)
printf("\n\nGroup Name - SomeEvent:\n");
struct _event* Fisher = newEvent("Fisher",NULL,"2050-01-01T00:00:00.000Z",NULL, "PT01M");
struct _event* Fisher = newEvent("Fisher",NULL,"2050-01-01T00:00:00.000Z",NULL, "PT01M",NULL);
if(Fisher && addNewEventToEventGroup(Fisher,someGroup))
printf("\nCreated and Added event Fisher.");
struct _event* Pearson = newEvent("Pearson", "2050-01-01T00:00:45.000Z", "2050-01-01T00:05:00.000Z", "2050-01-01T00:10:00.000Z", "PT30.000S");
struct _event* Pearson = newEvent("Pearson", "2050-01-01T00:00:45.000Z", "2050-01-01T00:05:00.000Z", "2050-01-01T00:10:00.000Z", "PT30.000S",NULL);
if(Pearson && addNewEventToEventGroup(Pearson,someGroup))
printf("\nCreated and Added event Pearson.");
/* Event handle and name can be different. */
struct _event* Cox = newEvent("Cox", "2050-01-01T00:16:00.000Z", "2050-01-01T00:05:00.000Z", "2050-01-01T00:10:00.000Z", "PT30.000S");
struct _event* Cox = newEvent("Cox", "2050-01-01T00:16:00.000Z", "2050-01-01T00:05:00.000Z", "2050-01-01T00:10:00.000Z", "PT30.000S",NULL);
if(Cox && addNewEventToEventGroup(Cox,someGroup))
printf("\nCreated and Added event Cox.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment