From 4f04d1e6f02113ad0f539b723333f8f1f5734f13 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 4 May 2019 12:40:48 +0200 Subject: Rename dhall_generator to dhall_proc_macros --- dhall/tests/traits.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'dhall/tests/traits.rs') 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!( >::get_simple_static_type(), - mktype(dhall_generator::subexpr!(Optional Bool)) + mktype(dhall_proc_macros::subexpr!(Optional Bool)) ); assert_eq!( <(bool, Option)>::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!( ::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!( >::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!( >::get_simple_static_type(), - mktype(dhall_generator::subexpr!(< A: Bool | B: Text >)) + mktype(dhall_proc_macros::subexpr!(< A: Bool | B: Text >)) ); } -- cgit v1.2.3