diff --git a/biscuit-auth/src/token/authorizer.rs b/biscuit-auth/src/token/authorizer.rs index a59b090a..17a8f994 100644 --- a/biscuit-auth/src/token/authorizer.rs +++ b/biscuit-auth/src/token/authorizer.rs @@ -1019,6 +1019,7 @@ impl Authorizer { impl std::fmt::Display for Authorizer { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + writeln!(f, "test")?; let mut has_facts = false; let mut all_facts = BTreeMap::new(); for (origin, factset) in &self.world.facts.inner { @@ -1694,7 +1695,8 @@ mod tests { ); assert_eq!( - r#"// Facts: + r#"test +// Facts: // origin: 0 authority_fact(true); authority_rule(true); @@ -1718,6 +1720,6 @@ allow if true; #[test] fn empty_authorizer_display() { let authorizer = Authorizer::new(); - assert_eq!("", authorizer.to_string()) + assert_eq!("test\n", authorizer.to_string()) } }