From f672c43cb65b30be0cec9397a7c1deef9d30b61d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 9 Mar 2021 19:50:33 +0100 Subject: stop prepending file_ on tests --- sylt_macro/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sylt_macro/src/lib.rs') diff --git a/sylt_macro/src/lib.rs b/sylt_macro/src/lib.rs index 95b79c6..b6bf3b2 100644 --- a/sylt_macro/src/lib.rs +++ b/sylt_macro/src/lib.rs @@ -214,7 +214,7 @@ fn find_test_paths(directory: &Path) -> proc_macro2::TokenStream { assert!(!path.to_str().unwrap().contains(","), "You should be ashamed."); let path_string = path.to_str().unwrap(); - let test_name = format_ident!("file_{}", file_name.replace(".sy", "")); + let test_name = format_ident!("{}", file_name.replace(".sy", "")); let settings = parse_test_settings(std::fs::read_to_string(path.clone()).unwrap()); let print = settings.print; -- cgit v1.2.1