We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54c02bd commit aedd068Copy full SHA for aedd068
2 files changed
src/macros.rs
@@ -18,7 +18,7 @@ macro_rules! assert_diff_eq {
18
19
let diff = str::from_utf8(&$actual).unwrap();
20
let re = Regex::new(r"\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ [+-]\d{4}").unwrap();
21
- let actual = re.replace_all(diff, "TIMESTAMP");
+ let actual = re.replacen(diff, 2, "TIMESTAMP");
22
23
assert_eq!(actual, $expected);
24
}};
src/utils.rs
@@ -154,7 +154,10 @@ mod tests {
154
let current: String = current.format("%Y-%m-%d %H:%M:%S%.9f %z").to_string();
155
156
// verify
157
- assert_eq!(current, get_modification_time(&temp.path().to_string_lossy()));
+ assert_eq!(
158
+ current,
159
+ get_modification_time(&temp.path().to_string_lossy())
160
+ );
161
}
162
163
#[test]
0 commit comments