From bb0224c1201366c61abb71bfceba13ebd97258c7 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Thu, 19 Dec 2019 07:11:56 +1000 Subject: [PATCH] add test for named format args --- tests/macros.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/macros.rs b/tests/macros.rs index 34c8981..9478db4 100644 --- a/tests/macros.rs +++ b/tests/macros.rs @@ -26,6 +26,15 @@ fn with_args_expr_context() { }; } +#[test] +fn with_named_args() { + let cats = "cats"; + + info!("hello {cats}", cats = cats); + info!("hello {cats}", cats = cats,); + info!("hello {cats}", cats = cats,); +} + #[test] fn kv() { info!("hello {}", "cats", {