Skip to content

Commit 2ebd198

Browse files
committed
fix(snap)!: Remove redundant assert_eq function
1 parent 2a1a25f commit 2ebd198

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

crates/snapbox/src/lib.rs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -89,38 +89,6 @@ pub mod prelude {
8989
pub use crate::ToDebug;
9090
}
9191

92-
/// Check if a value is the same as an expected value
93-
///
94-
/// By default [`filters`] are applied, including:
95-
/// - `...` is a line-wildcard when on a line by itself
96-
/// - `[..]` is a character-wildcard when inside a line
97-
/// - `[EXE]` matches `.exe` on Windows
98-
/// - `\` to `/`
99-
/// - Newlines
100-
///
101-
/// To limit this to newline normalization for text, call [`Data::raw`] on `expected`.
102-
///
103-
/// ```rust
104-
/// # use snapbox::assert_eq;
105-
/// let output = "something";
106-
/// let expected = "so[..]g";
107-
/// assert_eq(expected, output);
108-
/// ```
109-
///
110-
/// Can combine this with [`file!`]
111-
/// ```rust,no_run
112-
/// # use snapbox::assert_eq;
113-
/// # use snapbox::file;
114-
/// let actual = "something";
115-
/// assert_eq(file!["output.txt"], actual);
116-
/// ```
117-
#[track_caller]
118-
pub fn assert_eq(expected: impl IntoData, actual: impl IntoData) {
119-
Assert::new()
120-
.action_env(assert::DEFAULT_ACTION_ENV)
121-
.eq(expected, actual);
122-
}
123-
12492
/// Check if a path matches the content of another path, recursively
12593
///
12694
/// When the content is text, newlines are normalized.

0 commit comments

Comments
 (0)