From 0c495ba984436cccc6caeed66639a2b61095dbad Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 18 Aug 2023 16:43:03 +0200 Subject: chore: switch from pretty_assertions to similar-asserts In the next commit I'm adding a test that compares the content of files and pretty_assertions doesn't omit large portions of unchanged lines in its diff[1] (contrary to similar-asserts). (Sidenote: We already depend on similar via insta.) [1]: https://github.com/rust-pretty-assertions/rust-pretty-assertions/issues/114 --- tests/test_spans.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_spans.rs b/tests/test_spans.rs index 10735b2..9fecae8 100644 --- a/tests/test_spans.rs +++ b/tests/test_spans.rs @@ -8,7 +8,7 @@ use codespan_reporting::{ }; use html5tokenizer::{offset::PosTrackingReader, DefaultEmitter, Token, Tokenizer}; use insta::assert_snapshot; -use pretty_assertions::assert_eq; +use similar_asserts::assert_eq; fn tokenizer(html: &'static str) -> impl Iterator> { Tokenizer::new( -- cgit v1.2.3