summaryrefslogtreecommitdiff
path: root/dhall/tests
diff options
context:
space:
mode:
authorNadrieril2019-03-24 23:36:15 +0100
committerNadrieril2019-03-24 23:36:15 +0100
commit0424d165836fcbf15aa2e05527d0e790941c9518 (patch)
tree8aaf71ac08cf912f4d4c2c47f51d58dcaa874891 /dhall/tests
parent5663b4499b46a914ad59792220b0a6cfc24b608c (diff)
Lay groundwork for DhallType deriving
Diffstat (limited to 'dhall/tests')
-rw-r--r--dhall/tests/dhall_type.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/dhall/tests/dhall_type.rs b/dhall/tests/dhall_type.rs
new file mode 100644
index 0000000..cbb71a4
--- /dev/null
+++ b/dhall/tests/dhall_type.rs
@@ -0,0 +1,15 @@
+#![feature(proc_macro_hygiene)]
+use dhall_core::*;
+use dhall_generator::*;
+
+#[derive(DhallType)]
+struct A {
+ _field1: bool,
+ // field2: Option<bool>,
+}
+
+#[test]
+fn test_dhall_type_a() {
+ assert_eq!(A::dhall_type(), dhall_expr!(False));
+ // assert_eq!(A::dhall_type(), dhall_expr!({ field1: Bool }));
+}