summaryrefslogtreecommitdiffstats
path: root/tests/congress33c3/parsing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/congress33c3/parsing.rs')
-rw-r--r--tests/congress33c3/parsing.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/congress33c3/parsing.rs b/tests/congress33c3/parsing.rs
new file mode 100644
index 0000000..4be08a6
--- /dev/null
+++ b/tests/congress33c3/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-33c3.ics", env!("CARGO_MANIFEST_DIR")));
+ let buffer = ::std::fs::read_to_string(&path).unwrap();
+ let _ = IcalVCalendar::from_str(&buffer, Some(&path)).unwrap();
+}
+