diff options
Diffstat (limited to 'tests/test_expr.rs')
-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; } |