From 5be13d160245d29b93c418a17594cef36cc983fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Thu, 21 Mar 2024 22:32:48 +0100 Subject: [PATCH] FIX: Adds test case for escape_xml function --- xlsx/src/export/test/test_escape.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/xlsx/src/export/test/test_escape.rs b/xlsx/src/export/test/test_escape.rs index 4ca0b39..9c50beb 100644 --- a/xlsx/src/export/test/test_escape.rs +++ b/xlsx/src/export/test/test_escape.rs @@ -16,10 +16,9 @@ fn test_escape_xml() { escape_xml("This is <>&\"' say"), "This is <>&"' say" ); -} -// '&' => "&" -// '<' "<") -// '>' => ">" -// '"' => """ -// '\'' => "'" + assert_eq!( + escape_xml("One line\nanother line\n\r"), + "One line another line " + ); +}