Skip to content

Commit

Permalink
test output
Browse files Browse the repository at this point in the history
  • Loading branch information
papeh committed Jul 15, 2022
1 parent e44297a commit 3a2523a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/SIL.LCModel.Core/Text/CustomIcu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ public static void InitIcuDataDir()
$"{icu32Path}{Path.PathSeparator}{flexIcu32Path}{Path.PathSeparator}" +
$"{icu64Path}{Path.PathSeparator}{flexIcu64Path}{Path.PathSeparator}" +
$"{Environment.GetEnvironmentVariable("PATH")}");
Console.Error.WriteLine($"New Path:{Environment.GetEnvironmentVariable("PATH").Replace(Path.PathSeparator.ToString(), Environment.NewLine)}");
}

var dataDirectory = Wrapper.DataDirectory;
Expand Down
8 changes: 6 additions & 2 deletions tests/SIL.LCModel.Core.Tests/Text/CustomIcuFallbackTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ public void FixtureTearDown()
public void InitIcuDataDir_CustomIcuVersion()
{
CopyIcuFiles(_tmpDir, CustomIcuLibraryVersionMajor);
//Assert.That(RunTestHelper(_tmpDir), Is.EqualTo($"{CustomIcuLibraryVersionMajor}.1{Environment.NewLine}NON_SPACING_MARK{Environment.NewLine}True"));
Console.WriteLine("InitIcuDataDir_CustomIcuVersion");
Assert.That(RunTestHelper(_tmpDir), Is.EqualTo($"{CustomIcuLibraryVersionMajor}.1{Environment.NewLine}NON_SPACING_MARK{Environment.NewLine}True"));
}

[Test]
Expand All @@ -197,13 +198,16 @@ public void InitIcuDataDir_FallbackDefaultIcuVersion()
Assert.That(icuFilesInTmpDir.Count, Is.EqualTo(2), string.Join("\r\n", icuFilesInTmpDir));
Assert.That(icuFilesInTmpDir.All(f => f.Contains(DefaultIcuLibraryVersionMajor)), Is.True, string.Join("\r\n", icuFilesInTmpDir));
// SUT
Console.WriteLine("InitIcuDataDir_FallbackDefaultIcuVersion");
Assert.That(RunTestHelper(_tmpDir), Is.EqualTo($"{DefaultIcuLibraryVersionMajor}.2{Environment.NewLine}PRIVATE_USE_CHAR{Environment.NewLine}False"));
Console.WriteLine("InitIcuDataDir_FallbackDefaultIcuVersion finish");
}

[Test]
public void InitIcuDataDir_NoIcuLibrary()
{
//Assert.That(RunTestHelper(_tmpDir, true), Is.Empty);
Console.WriteLine("InitIcuDataDir_NoIcuLibrary");
Assert.That(RunTestHelper(_tmpDir, true), Is.Empty);
}
}
}

0 comments on commit 3a2523a

Please sign in to comment.