Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added test to check result on a single match for RELATED.
[xestiacalendar/.git] / source / tests / xestiacalendar_commonfunctions.h
index f17b2a7..21ea604 100644 (file)
@@ -124,6 +124,11 @@ TEST(CommonFunctions, ProcessTextVectorsTests){
 
        ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "RESOURCES"));
 
+       TextExample1TestResult.clear();
+       TextExample1TestResult.insert(make_pair("RESOURCES;ROOM=YES", "First Resource Widget"));
+
+       ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, false, "RESOURCES"));
+
        TextExample1TestResult.clear();
        TextExample1TestResult.insert(make_pair("RELATED;RELATION=NO", "First Relation"));
        TextExample1TestResult.insert(make_pair("RELATED;RELATION=YES", "Second Relation"));
@@ -131,4 +136,9 @@ TEST(CommonFunctions, ProcessTextVectorsTests){
 
        ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "RELATED"));
 
+       TextExample1TestResult.clear();
+       TextExample1TestResult.insert(make_pair("RELATED;RELATION=NO", "First Relation"));
+
+       ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, false, "RELATED"));
+
 }
\ No newline at end of file
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy