add test for named format args

This commit is contained in:
Ashley Mannix 2019-12-19 07:11:56 +10:00
parent 1c73af5d30
commit bb0224c120

View File

@ -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", {