From 9615769e632a4385c0bcdd742a3ab540540603a1 Mon Sep 17 00:00:00 2001 From: BDisp Date: Mon, 26 Oct 2020 21:58:02 +0000 Subject: [PATCH] Changed to \u notation. --- UnitTests/TextFormatterTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UnitTests/TextFormatterTests.cs b/UnitTests/TextFormatterTests.cs index 7cc026abb..46d3fba5a 100644 --- a/UnitTests/TextFormatterTests.cs +++ b/UnitTests/TextFormatterTests.cs @@ -2261,12 +2261,12 @@ namespace Terminal.Gui { Assert.Equal (1, ustring.Make (c).ConsoleWidth); Assert.Equal (1, ustring.Make (c).Length); - c = new System.Rune (4432); + c = new System.Rune ('\u1150'); Assert.Equal (2, Rune.ColumnWidth (c)); // 0x1150 ᅐ Unicode Technical Report #11 Assert.Equal (2, ustring.Make (c).ConsoleWidth); Assert.Equal (3, ustring.Make (c).Length); - c = new System.Rune (4449); + c = new System.Rune ('\u1161'); Assert.Equal (0, Rune.ColumnWidth (c)); // 0x1161 ᅡ column width of 0 Assert.Equal (0, ustring.Make (c).ConsoleWidth); Assert.Equal (3, ustring.Make (c).Length); @@ -2294,10 +2294,10 @@ namespace Terminal.Gui { c = new System.Text.Rune (123); Assert.Equal (1, c.Utf8SequenceLength); - c = new System.Text.Rune (4432); + c = new System.Text.Rune ('\u1150'); Assert.Equal (3, c.Utf8SequenceLength); // 0x1150 ᅐ Unicode Technical Report #11 - c = new System.Text.Rune (4449); + c = new System.Text.Rune ('\u1161'); Assert.Equal (3, c.Utf8SequenceLength); // 0x1161 ᅡ column width of 0 c = new System.Text.Rune (31);