mirror of
https://gitee.com/openharmony/third_party_rust_log
synced 2024-11-23 07:40:08 +00:00
update macro tests
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
parent
6dab6ffb54
commit
debccc4913
@ -2,16 +2,28 @@
|
||||
extern crate log;
|
||||
|
||||
#[test]
|
||||
fn kv_info() {
|
||||
fn base() {
|
||||
info!("hello");
|
||||
info!("hello",);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn with_args() {
|
||||
info!("hello {}", "cats");
|
||||
info!("hello {}", "cats",);
|
||||
info!("hello {}", "cats",);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn kv() {
|
||||
info!("hello {}", "cats", {
|
||||
cat_1: "chashu",
|
||||
cat_2: "nori",
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn kv_interpolated_ident_expr() {
|
||||
info!("hello {value}", value = "cats", {
|
||||
cat_1: "chashu",
|
||||
cat_2: "nori",
|
||||
|
Loading…
Reference in New Issue
Block a user