From 628404675ef2b4988506a40c003d34b9e9b315c6 Mon Sep 17 00:00:00 2001 From: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Date: Fri, 27 Sep 2024 12:11:22 -0700 Subject: [PATCH] Add test for inline snapshot with a debug expr (#624) --- 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() {