summaryrefslogtreecommitdiffstats
path: root/tests/congress34c3
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-12-13 19:42:26 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-13 20:37:25 +0100
commitc95c7c5b25b3255b674a234e125a3698dba953bf (patch)
tree610db309bc06a6615a87b82331b96ae8049841c8 /tests/congress34c3
parentdb2fdf0c1f6f611bd0a8e574c4a455b0d74b3eca (diff)
Add testdata from the last few congressesrealworld-testdata
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'tests/congress34c3')
-rw-r--r--tests/congress34c3/mod.rs1
-rw-r--r--tests/congress34c3/parsing.rs13
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/congress34c3/mod.rs b/tests/congress34c3/mod.rs
new file mode 100644
index 0000000..a8eca30
--- /dev/null
+++ b/tests/congress34c3/mod.rs
@@ -0,0 +1 @@
+mod parsing;
diff --git a/tests/congress34c3/parsing.rs b/tests/congress34c3/parsing.rs
new file mode 100644
index 0000000..6efffe0
--- /dev/null
+++ b/tests/congress34c3/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-34c3.ics", env!("CARGO_MANIFEST_DIR")));
+ let buffer = ::std::fs::read_to_string(&path).unwrap();
+ let _ = IcalVCalendar::from_str(&buffer, Some(&path)).unwrap();
+}
+