Commit 23799577 authored by Alex Baker's avatar Alex Baker Committed by Ricki Hirner

Exclude Uid from unknownProperties

parent 9dae2365
......@@ -118,7 +118,7 @@ class Task: ICalendar() {
is RDate -> t.rDates += prop
is ExDate -> t.exDates += prop
is Categories -> t.categories.addAll(prop.categories.toList())
is ProdId, is DtStamp -> { /* don't save these as unknown properties */ }
is ProdId, is DtStamp, is Uid -> { /* don't save these as unknown properties */ }
else -> t.unknownProperties += prop
}
......
......@@ -87,11 +87,13 @@ class TaskTest {
assertEquals(828106200000L, t.createdAt)
assertEquals(840288600000L, t.lastModified)
assertTrue(t.unknownProperties.isEmpty())
t = regenerate(parseCalendar("most-fields2.ics"))
assertEquals("most-fields2@example.com", t.uid)
assertEquals(DtStart(DateTime("20100101T101010Z")), t.dtStart)
assertEquals(Duration(Dur(4, 3, 2, 1)), t.duration)
assertTrue(t.unknownProperties.isEmpty())
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment