summaryrefslogtreecommitdiffstats
path: root/tests/congress34c3/parsing.rs
blob: 6efffe03693ee6e1a15769ca78ef6281fd8cfc84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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();
}