diff options
author | Nora <nora.widdecke@tu-bs.de> | 2019-01-17 23:11:51 +0100 |
---|---|---|
committer | Nora <nora.widdecke@tu-bs.de> | 2019-01-17 23:11:51 +0100 |
commit | 61923052e2e01850ed36cc6e7aaded7213f13f49 (patch) | |
tree | 71049592a5e09e7a694ba7d5987a84f9b601e3d4 /src/icalwrap | |
parent | ab6272c5a7d9642a54cf34bfe2adb229deb97089 (diff) |
icalcomponent: add test for LAST-MODIFIED property
Diffstat (limited to 'src/icalwrap')
-rw-r--r-- | src/icalwrap/icalcomponent.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/icalwrap/icalcomponent.rs b/src/icalwrap/icalcomponent.rs index a5825f2..e1a315d 100644 --- a/src/icalwrap/icalcomponent.rs +++ b/src/icalwrap/icalcomponent.rs @@ -70,6 +70,16 @@ mod tests { } #[test] + fn get_property_test_lastmodified() { + let cal = IcalVCalendar::from_str(testdata::TEST_EVENT_MULTIDAY_LASTMODIFIED, None).unwrap(); + let event = cal.get_principal_event(); + let prop_name = "LAST-MODIFIED"; + let prop_value: String = event.get_property_by_name(prop_name).unwrap().get_value(); + + assert_eq!("20070423T123432Z".to_string(), prop_value); + } + + #[test] fn get_property_test_cal() { let cal = IcalVCalendar::from_str(testdata::TEST_EVENT_MULTIDAY, None).unwrap(); let prop_name = "PRODID"; |