From 349e6c62ada1fa45a8b80edb877b5e7c9d0c306d Mon Sep 17 00:00:00 2001 From: Pavan Kumar Sunkara Date: Thu, 13 Aug 2020 02:57:26 +0200 Subject: Rename ra_proc_macro_srv -> proc_macro_srv --- crates/ra_proc_macro_srv/src/tests/mod.rs | 45 ------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 crates/ra_proc_macro_srv/src/tests/mod.rs (limited to 'crates/ra_proc_macro_srv/src/tests/mod.rs') diff --git a/crates/ra_proc_macro_srv/src/tests/mod.rs b/crates/ra_proc_macro_srv/src/tests/mod.rs deleted file mode 100644 index 8e6f28abd..000000000 --- a/crates/ra_proc_macro_srv/src/tests/mod.rs +++ /dev/null @@ -1,45 +0,0 @@ -//! proc-macro tests - -#[macro_use] -mod utils; -use test_utils::assert_eq_text; -use utils::*; - -#[test] -fn test_derive_serialize_proc_macro() { - assert_expand( - "serde_derive", - "Serialize", - "1.0", - r"struct Foo {}", - include_str!("fixtures/test_serialize_proc_macro.txt"), - ); -} - -#[test] -fn test_derive_serialize_proc_macro_failed() { - assert_expand( - "serde_derive", - "Serialize", - "1.0", - r"struct {}", - r##" -SUBTREE $ - IDENT compile_error 4294967295 - PUNCH ! [alone] 4294967295 - SUBTREE {} 4294967295 - LITERAL "expected identifier" 4294967295 -"##, - ); -} - -#[test] -fn test_derive_proc_macro_list() { - let res = list("serde_derive", "1.0").join("\n"); - - assert_eq_text!( - &res, - r#"Serialize [CustomDerive] -Deserialize [CustomDerive]"# - ); -} -- cgit v1.2.3