Partially Addresses #2616. Support combining sequences that don't normalize (#2932)

* Fixes #2616. Support combining sequences that don't normalize

* Decouples Application from ConsoleDriver in TestHelpers

* Updates driver tests to match new arch

* Start on making all driver tests test all drivers

* Improves handling if combining marks.

* Fix unit tests fails.

* Fix unit tests fails.

* Handling combining mask.

* Tying to fix this unit test that sometimes fail.

* Add support for combining mask on NetDriver.

* Enable CombiningMarks as List<Rune>.

* Prevents combining marks on invalid runes default and space.

* Formatting for CI tests.

* Fix non-normalized combining mark to add 1 to Col.

* Reformatting for retest the CI.

* Forces non-normalized CMs to be ignored.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
This commit is contained in:
BDisp
2023-10-29 18:51:23 +00:00
committed by GitHub
parent 095013bf0d
commit aa8b952509
26 changed files with 414 additions and 269 deletions

View File

@@ -836,7 +836,7 @@ Three ", output);
000000
222222
222222
222222", attributes);
222222", driver: Application.Driver, attributes);
Assert.True (cb.Subviews [1].ProcessKey (new KeyEvent (Key.CursorDown, new KeyModifiers ())));
Assert.Equal ("", selected);
@@ -848,7 +848,7 @@ Three ", output);
000000
222222
000002
222222", attributes);
222222", driver: Application.Driver, attributes);
Assert.True (cb.Subviews [1].ProcessKey (new KeyEvent (Key.CursorDown, new KeyModifiers ())));
Assert.Equal ("", selected);
@@ -860,7 +860,7 @@ Three ", output);
000000
222222
222222
000002", attributes);
000002", driver: Application.Driver, attributes);
Assert.True (cb.Subviews [1].ProcessKey (new KeyEvent (Key.Enter, new KeyModifiers ())));
Assert.Equal ("Three", selected);
@@ -878,7 +878,7 @@ Three ", output);
000000
222222
222222
000002", attributes);
000002", driver: Application.Driver, attributes);
Assert.True (cb.Subviews [1].ProcessKey (new KeyEvent (Key.CursorUp, new KeyModifiers ())));
Assert.Equal ("Three", selected);
@@ -890,7 +890,7 @@ Three ", output);
000000
222222
000002
111112", attributes);
111112", driver: Application.Driver, attributes);
Assert.True (cb.Subviews [1].ProcessKey (new KeyEvent (Key.CursorUp, new KeyModifiers ())));
Assert.Equal ("Three", selected);
@@ -902,7 +902,7 @@ Three ", output);
000000
000002
222222
111112", attributes);
111112", driver: Application.Driver, attributes);
Assert.True (cb.ProcessKey (new KeyEvent (Key.F4, new KeyModifiers ())));
Assert.Equal ("Three", selected);