summaryrefslogtreecommitdiff
path: root/serde_dhall
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--serde_dhall/tests/traits.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/serde_dhall/tests/traits.rs b/serde_dhall/tests/traits.rs
index ed768c1..cd29f9e 100644
--- a/serde_dhall/tests/traits.rs
+++ b/serde_dhall/tests/traits.rs
@@ -64,4 +64,14 @@ fn test_static_type() {
B(bool),
}
assert_eq!(F::static_type(), parse("< A | B: Bool >"));
+
+
+ #[derive(StaticType)]
+ #[allow(dead_code)]
+ enum G {
+ A,
+ B(bool),
+ C {a: bool, b: u64}
+ }
+ assert_eq!(G::static_type(), parse("< A | B: Bool | C: { a: Bool, b: Natural } >"))
}