summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ccc.rs5
-rw-r--r--tests/congress31c3/mod.rs1
-rw-r--r--tests/congress31c3/parsing.rs13
-rw-r--r--tests/congress32c3/mod.rs1
-rw-r--r--tests/congress32c3/parsing.rs13
-rw-r--r--tests/congress33c3/mod.rs1
-rw-r--r--tests/congress33c3/parsing.rs13
-rw-r--r--tests/congress34c3/mod.rs1
-rw-r--r--tests/congress34c3/parsing.rs13
-rw-r--r--tests/congress35c3/mod.rs1
-rw-r--r--tests/congress35c3/parsing.rs13
11 files changed, 75 insertions, 0 deletions
diff --git a/tests/ccc.rs b/tests/ccc.rs
new file mode 100644
index 0000000..856759b
--- /dev/null
+++ b/tests/ccc.rs
@@ -0,0 +1,5 @@
+mod congress35c3;
+mod congress34c3;
+mod congress33c3;
+mod congress32c3;
+mod congress31c3;
diff --git a/tests/congress31c3/mod.rs b/tests/congress31c3/mod.rs
new file mode 100644
index 0000000..a8eca30
--- /dev/null
+++ b/tests/congress31c3/mod.rs
@@ -0,0 +1 @@
+mod parsing;
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();
+}
+
diff --git a/tests/congress32c3/mod.rs b/tests/congress32c3/mod.rs
new file mode 100644
index 0000000..a8eca30
--- /dev/null
+++ b/tests/congress32c3/mod.rs
@@ -0,0 +1 @@
+mod parsing;
diff --git a/tests/congress32c3/parsing.rs b/tests/congress32c3/parsing.rs
new file mode 100644
index 0000000..175c6db
--- /dev/null
+++ b/tests/congress32c3/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-32c3.ics", env!("CARGO_MANIFEST_DIR")));
+ let buffer = ::std::fs::read_to_string(&path).unwrap();
+ let _ = IcalVCalendar::from_str(&buffer, Some(&path)).unwrap();
+}
+
diff --git a/tests/congress33c3/mod.rs b/tests/congress33c3/mod.rs
new file mode 100644
index 0000000..a8eca30
--- /dev/null
+++ b/tests/congress33c3/mod.rs
@@ -0,0 +1 @@
+mod parsing;
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();
+}
+
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();
+}
+
diff --git a/tests/congress35c3/mod.rs b/tests/congress35c3/mod.rs
new file mode 100644
index 0000000..a8eca30
--- /dev/null
+++ b/tests/congress35c3/mod.rs
@@ -0,0 +1 @@
+mod parsing;
diff --git a/tests/congress35c3/parsing.rs b/tests/congress35c3/parsing.rs
new file mode 100644
index 0000000..d36fc9b
--- /dev/null
+++ b/tests/congress35c3/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-35c3.ics", env!("CARGO_MANIFEST_DIR")));
+ let buffer = ::std::fs::read_to_string(&path).unwrap();
+ let _ = IcalVCalendar::from_str(&buffer, Some(&path)).unwrap();
+}
+