summaryrefslogtreecommitdiff
path: root/dhall/tests
diff options
context:
space:
mode:
authorNadrieril2019-05-04 12:40:48 +0200
committerNadrieril2019-05-04 12:40:48 +0200
commit4f04d1e6f02113ad0f539b723333f8f1f5734f13 (patch)
tree140e2a97597d1f340191c9603313119e6661ec65 /dhall/tests
parent45be2ff1f5bb3d6e0faa098402adf985b3d5e7ca (diff)
Rename dhall_generator to dhall_proc_macros
Diffstat (limited to 'dhall/tests')
-rw-r--r--dhall/tests/traits.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/dhall/tests/traits.rs b/dhall/tests/traits.rs
index e26a6c7..4b21d42 100644
--- a/dhall/tests/traits.rs
+++ b/dhall/tests/traits.rs
@@ -1,7 +1,7 @@
#![feature(proc_macro_hygiene)]
use dhall::de::SimpleStaticType;
use dhall_syntax::{SubExpr, X};
-use dhall_generator;
+use dhall_proc_macros;
#[test]
fn test_static_type() {
@@ -11,19 +11,19 @@ fn test_static_type() {
assert_eq!(
bool::get_simple_static_type(),
- mktype(dhall_generator::subexpr!(Bool))
+ mktype(dhall_proc_macros::subexpr!(Bool))
);
assert_eq!(
String::get_simple_static_type(),
- mktype(dhall_generator::subexpr!(Text))
+ mktype(dhall_proc_macros::subexpr!(Text))
);
assert_eq!(
<Option<bool>>::get_simple_static_type(),
- mktype(dhall_generator::subexpr!(Optional Bool))
+ mktype(dhall_proc_macros::subexpr!(Optional Bool))
);
assert_eq!(
<(bool, Option<String>)>::get_simple_static_type(),
- mktype(dhall_generator::subexpr!({ _1: Bool, _2: Optional Text }))
+ mktype(dhall_proc_macros::subexpr!({ _1: Bool, _2: Optional Text }))
);
#[derive(dhall::de::SimpleStaticType)]
@@ -35,7 +35,7 @@ fn test_static_type() {
assert_eq!(
<A as dhall::de::SimpleStaticType>::get_simple_static_type(),
mktype(
- dhall_generator::subexpr!({ field1: Bool, field2: Optional Bool })
+ dhall_proc_macros::subexpr!({ field1: Bool, field2: Optional Bool })
)
);
@@ -63,7 +63,7 @@ fn test_static_type() {
struct D();
assert_eq!(
<C<D>>::get_simple_static_type(),
- mktype(dhall_generator::subexpr!({ _1: {}, _2: Optional Text }))
+ mktype(dhall_proc_macros::subexpr!({ _1: {}, _2: Optional Text }))
);
#[derive(SimpleStaticType)]
@@ -74,6 +74,6 @@ fn test_static_type() {
};
assert_eq!(
<E<bool>>::get_simple_static_type(),
- mktype(dhall_generator::subexpr!(< A: Bool | B: Text >))
+ mktype(dhall_proc_macros::subexpr!(< A: Bool | B: Text >))
);
}