blob: cbb71a4155c4434e8455beb2e3bf0a1f10fd141c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }));
}
|