mirror of
https://github.com/rust-lang/log.git
synced 2026-01-19 23:26:37 +00:00
add test for named format args
This commit is contained in:
parent
1c73af5d30
commit
bb0224c120
@ -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", {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user