From 2d3d784aefe57447cf4a1d0756dcefb3a6a8ee9f Mon Sep 17 00:00:00 2001 From: Tig Date: Sun, 7 Jul 2024 17:24:30 -0600 Subject: [PATCH] Hacked unit test to pass on Macos --- UnitTests/Views/DateFieldTests.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/UnitTests/Views/DateFieldTests.cs b/UnitTests/Views/DateFieldTests.cs index fdb99eeda..4dc349cd3 100644 --- a/UnitTests/Views/DateFieldTests.cs +++ b/UnitTests/Views/DateFieldTests.cs @@ -1,4 +1,5 @@ using System.Globalization; +using System.Runtime.InteropServices; namespace Terminal.Gui.ViewsTests; @@ -188,6 +189,12 @@ public class DateFieldTests separator = separator.Replace ("\u200f", ""); } + // BUGBUG: This is a workaround for the issue with the date separator in macOS. See https://github.com/gui-cs/Terminal.Gui/issues/3592 + if (RuntimeInformation.IsOSPlatform (OSPlatform.OSX)) + { + separator = " "; + } + string format = culture.DateTimeFormat.ShortDatePattern; var df = new DateField (date);