From 391f227488f3003679fc4df0ed7081d4c78c3249 Mon Sep 17 00:00:00 2001 From: Azriel Hoh Date: Wed, 10 Jan 2024 17:56:11 +1300 Subject: [PATCH] Update tests so that tokens include `peace::cfg::` prefix. --- crate/static_check_macros/src/lib.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/crate/static_check_macros/src/lib.rs b/crate/static_check_macros/src/lib.rs index 882571e7c..3542420d0 100644 --- a/crate/static_check_macros/src/lib.rs +++ b/crate/static_check_macros/src/lib.rs @@ -232,7 +232,10 @@ mod tests { None, ); - assert_eq!(r#"Ty :: new_unchecked ("_")"#, tokens.to_string()); + assert_eq!( + r#"peace :: cfg :: Ty :: new_unchecked ("_")"#, + tokens.to_string() + ); } #[test] @@ -242,7 +245,10 @@ mod tests { "Ty", None, ); - assert_eq!(r#"Ty :: new_unchecked ("a")"#, tokens.to_string()); + assert_eq!( + r#"peace :: cfg :: Ty :: new_unchecked ("a")"#, + tokens.to_string() + ); let tokens = ensure_valid_id( &LitStrMaybe(Some(LitStr::new("A", Span::call_site()))), @@ -250,7 +256,10 @@ mod tests { None, ); - assert_eq!(r#"Ty :: new_unchecked ("A")"#, tokens.to_string()); + assert_eq!( + r#"peace :: cfg :: Ty :: new_unchecked ("A")"#, + tokens.to_string() + ); } #[test]