Skip to content

Commit f018624

Browse files
committed
test(toml): Import common assertion
1 parent ed31dad commit f018624

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/cargo/util/toml/embedded.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ fn split_source(input: &str) -> CargoResult<Source<'_>> {
267267

268268
#[cfg(test)]
269269
mod test_expand {
270+
use snapbox::assert_data_eq;
270271
use snapbox::str;
271272

272273
use super::*;
@@ -284,7 +285,7 @@ mod test_expand {
284285

285286
#[test]
286287
fn test_default() {
287-
snapbox::assert_data_eq!(
288+
assert_data_eq!(
288289
si!(r#"fn main() {}"#),
289290
str![[r#"
290291
[[bin]]
@@ -312,7 +313,7 @@ strip = true
312313

313314
#[test]
314315
fn test_dependencies() {
315-
snapbox::assert_data_eq!(
316+
assert_data_eq!(
316317
si!(r#"---cargo
317318
[dependencies]
318319
time="0.1.25"
@@ -348,7 +349,7 @@ strip = true
348349

349350
#[test]
350351
fn test_no_infostring() {
351-
snapbox::assert_data_eq!(
352+
assert_data_eq!(
352353
si!(r#"---
353354
[dependencies]
354355
time="0.1.25"

0 commit comments

Comments
 (0)