From d8b91fd60eabc584ebdbad86d6ace6bbfea9355a Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Thu, 19 Sep 2024 22:33:33 +0200 Subject: [PATCH] Update unit test expectation --- src/utils.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index 561f2b9..df1390d 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -101,10 +101,11 @@ mod tests { // Note: The Woman Scientist emoji (šŸ‘©ā€šŸ”¬) is a ZWJ sequence combining // the Woman emoji (šŸ‘©) and the Microscope emoji (šŸ”¬). On supported platforms - // it is displayed as a single emoji and should have a print size of 2 columns, - // but terminal emulators tend to not support this, and display the two emojis - // side by side, thus accounting for a print size of 4 columns. - assert_tab_expansion("foo\tšŸ‘©ā€šŸ”¬\tbaz", 6, "foo šŸ‘©ā€šŸ”¬ baz"); + // it is displayed as a single emoji and has a print size of 2 columns. + // Terminal emulators tend to not support this, and display the two emojis + // side by side, thus accounting for a print size of 4 columns, but the + // unicode_width crate reports a correct size of 2. + assert_tab_expansion("foo\tšŸ‘©ā€šŸ”¬\tbaz", 6, "foo šŸ‘©ā€šŸ”¬ baz"); } #[test]