diff options
author | Matěj Laitl <matej@laitl.cz> | 2019-11-17 00:03:27 +0100 |
---|---|---|
committer | Matěj Laitl <matej@laitl.cz> | 2019-11-17 02:03:50 +0100 |
commit | b55004b8db378503a68056562084b42cf85cbe77 (patch) | |
tree | d165e9aacab37ca24ab5c6ff8b1c14fc1837f97d | |
parent | 4219c4d200b4c4aa744fdf45cf86c0f5778b97c9 (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.toml | 3 | ||||
-rw-r--r-- | tests/calendar.rs | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -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 |