diff options
author | Chih-Hung Hsieh <chh@google.com> | 2020-11-05 02:56:09 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-11-05 02:56:09 +0000 |
commit | e15500305d220e3391832584dc76a335ac066b93 (patch) | |
tree | b96c7e09d28efaaf8e5527dd44bfd7d0736ea84e | |
parent | 24ea1276c63491bd19e06aa0939cb34a7b7bd121 (diff) | |
parent | ece47a2b47a15d4d23b394f513be4e93e2a617ec (diff) | |
download | paste-e15500305d220e3391832584dc76a335ac066b93.tar.gz |
Replace env!("...") expressions am: ece47a2b47
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/paste/+/1485240
Change-Id: I55e95452110e821d5d49a346821c7898b384cade
-rw-r--r-- | tests/test_expr.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_expr.rs b/tests/test_expr.rs index 8c0cc28..e8386d0 100644 --- a/tests/test_expr.rs +++ b/tests/test_expr.rs @@ -82,7 +82,7 @@ fn test_env_literal() { #[test] fn test_env_present() { paste! { - struct [<Lib env!("CARGO_PKG_NAME")>]; + struct [<Lib "paste">]; let _ = Libpaste; } @@ -137,7 +137,7 @@ fn test_empty() { #[test] fn test_env_to_lower() { paste! { - struct [<Lib env!("CARGO_PKG_NAME"):lower>]; + struct [<Lib "paste":lower>]; let _ = Libpaste; } @@ -146,7 +146,7 @@ fn test_env_to_lower() { #[test] fn test_env_to_upper() { paste! { - const [<LIB env!("CARGO_PKG_NAME"):upper>]: &str = "libpaste"; + const [<LIB "paste":upper>]: &str = "libpaste"; let _ = LIBPASTE; } @@ -155,7 +155,7 @@ fn test_env_to_upper() { #[test] fn test_env_to_snake() { paste! { - const [<LIB env!("CARGO_PKG_NAME"):snake:upper>]: &str = "libpaste"; + const [<LIB "paste":snake:upper>]: &str = "libpaste"; let _ = LIBPASTE; } @@ -165,7 +165,7 @@ fn test_env_to_snake() { fn test_env_to_camel() { paste! { #[allow(non_upper_case_globals)] - const [<LIB env!("CARGO_PKG_NAME"):camel>]: &str = "libpaste"; + const [<LIB "paste":camel>]: &str = "libpaste"; let _ = LIBPaste; } |