@@ -493,3 +493,33 @@ func TestIssue77(t *testing.T) {
493
493
t .Fatalf ("Error reading file: %s" , err )
494
494
}
495
495
}
496
+
497
+ func TestIssue111 (t * testing.T ) {
498
+ type Test struct {
499
+ name string
500
+ fn string
501
+ }
502
+ for _ , test := range []Test {
503
+ {name : "Just the basis" , fn : "base-structure.ics" },
504
+ {name : "vtimezone1 section" , fn : "vtimezone1.ics" },
505
+ {name : "vevent1 section" , fn : "vevent1.ics" },
506
+ {name : "vevent2 section" , fn : "vevent2.ics" },
507
+ {name : "scheduleversion section" , fn : "scheduleversion.ics" },
508
+ {name : "Just the basis" , fn : "base-structure.ics" },
509
+ {name : "vevent2 without description section" , fn : "vevent2-no-desc.ics" },
510
+ {name : "vevent2 fixed section" , fn : "vevent2-fixed.ics" },
511
+ {name : "Full file" , fn : "file1.ics" },
512
+ } {
513
+ t .Run (test .name , func (t * testing.T ) {
514
+ calFile , err := TestData .Open ("testdata/issue111/" + test .fn )
515
+ if err != nil {
516
+ t .Errorf ("read file: %v" , err )
517
+ }
518
+ _ , err = ParseCalendar (calFile )
519
+ if err != nil {
520
+ t .Errorf ("parse calendar: %v" , err )
521
+ }
522
+ })
523
+ }
524
+
525
+ }
0 commit comments