diff options
-rw-r--r-- | Cargo.toml | 5 | ||||
-rw-r--r-- | integration_tests/Cargo.toml | 2 | ||||
-rw-r--r-- | integration_tests/tests/test_html5lib.rs | 2 | ||||
-rw-r--r-- | tests/test_spans.rs | 2 |
4 files changed, 7 insertions, 4 deletions
@@ -2,6 +2,9 @@ members = [".", "html5lib_tests", "integration_tests"] default-members = [".", "html5lib_tests", "integration_tests"] +[workspace.dependencies] +similar-asserts = "1.4.2" + [package] name = "html5tokenizer" authors = ["Markus Unterwaditzer <markus-honeypot@unterwaditzer.net>", "Martin Fischer <martin@push-f.com>"] @@ -17,7 +20,7 @@ include = ["src/**/*", "LICENSE", "README.md"] [dev-dependencies] codespan-reporting = "0.11.1" insta = "1.31.0" -pretty_assertions = "1.0.0" +similar-asserts = { workspace = true } [features] # Feature used by integration tests in tests/ to get access to library internals. 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. 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<Item = Token<usize>> { Tokenizer::new( |