Skip to content
Snippets Groups Projects
Commit 676a99d4 authored by Ralf Mueller's avatar Ralf Mueller
Browse files

add short desc. to timedelta tests

parent 7f7c71c2
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@
#include "mtime_julianDay.h"
/**
* check the string representation of mtime variables of type
* check the string representation of mtime variables of type
* datetime and timedelta
*/
static void test_mtime_string_representation() {
......@@ -51,6 +51,7 @@ static void test_mtime_string_representation() {
assert_string_equal("P1Y06M",timedeltaToString(td,tds));
}
/**
* test the addition of a month uppon the and of january
*/
......@@ -194,6 +195,9 @@ static void test_event_at_endOfMonths() {
} while (compareDatetime(model_time, stop_date) <= 0);
}
/**
* check adding negative time periods
*/
static void test_add_delta(){
struct _datetime *dummy;
struct _datetime *init = newDateTime("1111-11-11T00:00:00.000");
......@@ -206,6 +210,7 @@ static void test_add_delta(){
assert_string_equal("1111-11-11T00:10:00.000",datetimeToString(addTimeDeltaToDateTime(init,minusdelta,init),init_s));
assert_string_equal("1111-11-11T00:00:00.000",datetimeToString(addTimeDeltaToDateTime(init,minusdelta,init),init_s));
}
int main(void) {
initCalendar(PROLEPTIC_GREGORIAN);
......
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