summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Laitl <matej@laitl.cz>2019-11-17 00:03:27 +0100
committerMatěj Laitl <matej@laitl.cz>2019-11-17 02:03:50 +0100
commitb55004b8db378503a68056562084b42cf85cbe77 (patch)
treed165e9aacab37ca24ab5c6ff8b1c14fc1837f97d
parent4219c4d200b4c4aa744fdf45cf86c0f5778b97c9 (diff)
Use pretty_assertions in tests
It makes debugging tests so much easier (the dev-only dependency is not pulled at all in normal builds)
-rw-r--r--Cargo.toml3
-rw-r--r--tests/calendar.rs1
2 files changed, 4 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index e98133f..c18efea 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,3 +26,6 @@ chrono = "0.4"
[dependencies.uuid]
features = ["v4"]
version = "0.5"
+
+[dev-dependencies]
+pretty_assertions = "0.6"
diff --git a/tests/calendar.rs b/tests/calendar.rs
index c57b53d..3d885f8 100644
--- a/tests/calendar.rs
+++ b/tests/calendar.rs
@@ -1,5 +1,6 @@
use chrono::prelude::*;
use icalendar::{Calendar, Class, Component, Event, EventStatus, Todo};
+use pretty_assertions::assert_eq;
const EXPECTED_CAL_CONTENT: &str = "\
BEGIN:VCALENDAR\r