From 439dca3c78abe8e86e002d4a5812ccdc78ae8a18 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 12:27:50 +0000 Subject: [PATCH] Added unit tests for SEQUENCE and STATUS in iCalendarTask/ObjectDataTests. --- source/tests/xestiacalendar_icaltaskload.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/tests/xestiacalendar_icaltaskload.h b/source/tests/xestiacalendar_icaltaskload.h index db631b5..747b53c 100644 --- a/source/tests/xestiacalendar_icaltaskload.h +++ b/source/tests/xestiacalendar_icaltaskload.h @@ -138,4 +138,15 @@ TEST(iCalendarTask, ObjectDataTests){ ASSERT_EQ("DATE", TestTask.RecurranceIDDataValue); ASSERT_EQ("EXAMPLE=DATA", TestTask.RecurranceIDDataTokens); + // Tests for SEQUENCE. + + ASSERT_EQ(3, TestTask.SequenceData); + ASSERT_EQ("TEST=YAY", TestTask.SequenceTokens); + + // Tests for STATUS. + + ASSERT_EQ("2.0;Success", TestTask.StatusData); + ASSERT_EQ("kw", TestTask.StatusLanguage); + ASSERT_EQ("FAVOURITE=BEANS;NOTLIKE=UNKNOWN", TestTask.StatusTokens); + } \ No newline at end of file -- 2.39.5