update macro tests

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
Yoshua Wuyts 2019-09-02 02:03:31 +02:00
parent 6dab6ffb54
commit debccc4913
No known key found for this signature in database
GPG Key ID: 24EA8164F96777ED

View File

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