Browse Source

Changed to \u notation.

BDisp 4 years ago
parent
commit
9615769e63
1 changed files with 4 additions and 4 deletions
  1. 4 4
      UnitTests/TextFormatterTests.cs

+ 4 - 4
UnitTests/TextFormatterTests.cs

@@ -2261,12 +2261,12 @@ namespace Terminal.Gui {
 			Assert.Equal (1, ustring.Make (c).ConsoleWidth);
 			Assert.Equal (1, ustring.Make (c).ConsoleWidth);
 			Assert.Equal (1, ustring.Make (c).Length);
 			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, Rune.ColumnWidth (c));      // 0x1150	ᅐ	Unicode Technical Report #11
 			Assert.Equal (2, ustring.Make (c).ConsoleWidth);
 			Assert.Equal (2, ustring.Make (c).ConsoleWidth);
 			Assert.Equal (3, ustring.Make (c).Length);
 			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, Rune.ColumnWidth (c));      // 0x1161	ᅡ	column width of 0
 			Assert.Equal (0, ustring.Make (c).ConsoleWidth);
 			Assert.Equal (0, ustring.Make (c).ConsoleWidth);
 			Assert.Equal (3, ustring.Make (c).Length);
 			Assert.Equal (3, ustring.Make (c).Length);
@@ -2294,10 +2294,10 @@ namespace Terminal.Gui {
 			c = new System.Text.Rune (123);
 			c = new System.Text.Rune (123);
 			Assert.Equal (1, c.Utf8SequenceLength);
 			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
 			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
 			Assert.Equal (3, c.Utf8SequenceLength);		// 0x1161	ᅡ	column width of 0
 
 
 			c = new System.Text.Rune (31);
 			c = new System.Text.Rune (31);