aboutsummaryrefslogtreecommitdiff
path: root/tests/test_attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_attr.rs')
-rw-r--r--tests/test_attr.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_attr.rs b/tests/test_attr.rs
index fd67e2a..f2a5bf0 100644
--- a/tests/test_attr.rs
+++ b/tests/test_attr.rs
@@ -1,4 +1,27 @@
use paste::paste;
+use paste_test_suite::paste_test;
+
+#[test]
+fn test_attr() {
+ paste! {
+ #[paste_test(k = "val" "ue")]
+ struct A;
+
+ #[paste_test_suite::paste_test(k = "val" "ue")]
+ struct B;
+
+ #[::paste_test_suite::paste_test(k = "val" "ue")]
+ struct C;
+
+ #[paste_test(k = "va" [<l u>] e)]
+ struct D;
+ }
+
+ let _ = A;
+ let _ = B;
+ let _ = C;
+ let _ = D;
+}
#[test]
fn test_paste_cfg() {