Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmg-duarte committed Jul 4, 2024
1 parent 631f18e commit 65bd06a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub fn test_tokens_attr1(attr: TokenStream, tokens: TokenStream) -> TokenStream
assert_eq!(imported_item_str, "struct AnotherStruct { field1 : u32, }");
assert_eq!(
attached_item_str,
"pub mod hunter { pub fn stuff() { println! (\"things\") ; } }"
"pub mod hunter { pub fn stuff() { println! (\"things\"); } }"
);
quote! {
#attached_item
Expand Down
6 changes: 3 additions & 3 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ fn println_inside_fn_current_file() {
let tokens = example_tokens_proc!(a_random_fn);
assert_eq!(
tokens.to_string(),
"fn a_random_fn() { println! (\"hey\") ; }"
"fn a_random_fn() { println! (\"hey\"); }"
);
}

Expand All @@ -193,7 +193,7 @@ fn println_inside_fn_external_file() {
let tokens = example_tokens_proc!(external_file::external_fn_with_println);
assert_eq!(
tokens.to_string(),
"fn external_fn_with_println() { println! (\"testing\") ; }"
"fn external_fn_with_println() { println! (\"testing\"); }"
);
}

Expand All @@ -202,7 +202,7 @@ fn macro_calls_inside_fn_external_crate() {
let tokens = example_tokens_proc!(external_crate::external_fn_with_local_macro_calls);
assert_eq!(
tokens.to_string(),
"fn external_fn_with_local_macro_calls() -> u32 { another_macro! () ; 1337 }"
"fn external_fn_with_local_macro_calls() -> u32 { another_macro! (); 1337 }"
);
}

Expand Down

0 comments on commit 65bd06a

Please sign in to comment.