From 37fea83ca9fb921c0e6fe7b0c133fa2546172f3a Mon Sep 17 00:00:00 2001 From: Dom Date: Mon, 30 Nov 2020 11:57:48 +0000 Subject: [PATCH] test: add newline test case --- server/src/server.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/server.rs b/server/src/server.rs index 33762aa0d4..344e483e70 100644 --- a/server/src/server.rs +++ b/server/src/server.rs @@ -406,11 +406,12 @@ mod tests { let mut server = Server::new(manager, store); server.set_id(1); - let reject: [&str; 4] = [ + let reject: [&str; 5] = [ "bananas!", r#""bananas\"are\"great"#, "bananas:good", "bananas/cavendish", + "bananas\n", ]; for &name in &reject {