diff options
Diffstat (limited to 'tests/congress31c3/parsing.rs')
-rw-r--r-- | tests/congress31c3/parsing.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/congress31c3/parsing.rs b/tests/congress31c3/parsing.rs new file mode 100644 index 0000000..837111d --- /dev/null +++ b/tests/congress31c3/parsing.rs @@ -0,0 +1,13 @@ +/// Tests for testing the CCC "fahrplan" data +/// + +use std::path::PathBuf; +use libical::vcalendar::IcalVCalendar; + +#[test] +fn test_parse() { + let path = PathBuf::from(format!("{}/testdata/ccc/schedule-31c3.ics", env!("CARGO_MANIFEST_DIR"))); + let buffer = ::std::fs::read_to_string(&path).unwrap(); + let _ = IcalVCalendar::from_str(&buffer, Some(&path)).unwrap(); +} + |