Browse Source

Merge pull request #5 from BDisp/tig-prep_for_v_1_9

Fixed System_Rune_ColumnWidth unit test.
Tig 2 years ago
parent
commit
d8b1e8a77c
2 changed files with 2 additions and 5 deletions
  1. 0 3
      Example/Example.csproj
  2. 2 2
      UnitTests/TextFormatterTests.cs

+ 0 - 3
Example/Example.csproj

@@ -10,9 +10,6 @@
     <Version>1.0</Version>
     <InformationalVersion>1.0</InformationalVersion>
   </PropertyGroup>
-  <ItemGroup>
-    <PackageReference Include="NStack.Core" Version="1.0.5" />
-  </ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
   </ItemGroup>

+ 2 - 2
UnitTests/TextFormatterTests.cs

@@ -2841,12 +2841,12 @@ namespace Terminal.Gui.Core {
 
 			c = new System.Rune (31);
 			Assert.Equal (-1, Rune.ColumnWidth (c));        // non printable character
-			Assert.Equal (-1, ustring.Make (c).ConsoleWidth);
+			Assert.Equal (0, ustring.Make (c).ConsoleWidth);// ConsoleWidth only returns zero or greater than zero
 			Assert.Equal (1, ustring.Make (c).Length);
 
 			c = new System.Rune (127);
 			Assert.Equal (-1, Rune.ColumnWidth (c));       // non printable character
-			Assert.Equal (-1, ustring.Make (c).ConsoleWidth);
+			Assert.Equal (0, ustring.Make (c).ConsoleWidth);
 			Assert.Equal (1, ustring.Make (c).Length);
 		}