From 90d0f9945da2746a75c20b8fceeddb340134f2b2 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Fri, 27 Sep 2024 12:06:00 -0700 Subject: [PATCH] Add test for inline snapshot with a debug expr --- insta/tests/test_inline.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/insta/tests/test_inline.rs b/insta/tests/test_inline.rs index bdee1fed..fe936908 100644 --- a/insta/tests/test_inline.rs +++ b/insta/tests/test_inline.rs @@ -61,6 +61,11 @@ fn test_newline() { "###); } +#[test] +fn test_inline_debug_expr() { + assert_snapshot!("hello", "a debug expr", @"hello"); +} + #[cfg(feature = "csv")] #[test] fn test_csv_inline() {