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 --- integration_tests/Cargo.toml | 2 +- integration_tests/tests/test_html5lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'integration_tests') diff --git a/integration_tests/Cargo.toml b/integration_tests/Cargo.toml index cc27798..2123c75 100644 --- a/integration_tests/Cargo.toml +++ b/integration_tests/Cargo.toml @@ -18,4 +18,4 @@ edition = "2021" glob = "0.3.1" html5lib_tests = { path = "../html5lib_tests" } html5tokenizer = { path = "..", features = ["integration-tests"] } -pretty_assertions = "1.0.0" +similar-asserts = { workspace = true } diff --git a/integration_tests/tests/test_html5lib.rs b/integration_tests/tests/test_html5lib.rs index da3e983..7511f11 100644 --- a/integration_tests/tests/test_html5lib.rs +++ b/integration_tests/tests/test_html5lib.rs @@ -4,7 +4,7 @@ use html5lib_tests::{ parse_tests, Error as TestError, InitialState, Output, Test, Token as TestToken, }; use html5tokenizer::{reader::Reader, DefaultEmitter, InternalState, Token, Tokenizer}; -use pretty_assertions::assert_eq; +use similar_asserts::assert_eq; /// Path to a local checkout of [html5lib-tests], relative to the /// directory containing the `Cargo.toml` file of the current crate. -- cgit v1.2.3