File tree 1 file changed +0
-32
lines changed
1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -89,38 +89,6 @@ pub mod prelude {
89
89
pub use crate :: ToDebug ;
90
90
}
91
91
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
-
124
92
/// Check if a path matches the content of another path, recursively
125
93
///
126
94
/// When the content is text, newlines are normalized.
You can’t perform that action at this time.
0 commit comments