-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'radical-file-changes' into 'main'
Radicals: remove duplicates and update replace glyphs See merge request Wacton/Desu!2
- Loading branch information
Showing
46 changed files
with
1,123 additions
and
357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
image: mcr.microsoft.com/dotnet/sdk:5.0 | ||
image: mcr.microsoft.com/dotnet/sdk:6.0 | ||
|
||
stages: | ||
- build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using NUnit.Framework; | ||
using System.Collections.Generic; | ||
using Wacton.Desu.Radicals; | ||
|
||
namespace Wacton.Desu.Tests | ||
{ | ||
public class GlyphReplacement | ||
{ | ||
[Test] | ||
public void ByString() | ||
{ | ||
var input = "化个并刈込尚忙扎汁犯艾邦阡老杰礼疔禹初買滴乞"; | ||
var expected = "⺅𠆢丷⺉⻌⺌⺖⺘⺡⺨⺾⻏⻖⺹⺣⺭⽧⽱⻂⺲啇𠂉"; | ||
var actual = GlyphMap.Replace(input); | ||
Assert.That(actual, Is.EqualTo(expected)); | ||
} | ||
|
||
[Test] | ||
public void ByList() | ||
{ | ||
var input = new List<string> { "化", "个", "并", "刈", "込", "尚", "忙", "扎", "汁", "犯", "艾", "邦", "阡", "老", "杰", "礼", "疔", "禹", "初", "買", "滴", "乞" }; | ||
var expected = new List<string> { "⺅", "𠆢", "丷", "⺉", "⻌", "⺌", "⺖", "⺘", "⺡", "⺨", "⺾", "⻏", "⻖", "⺹", "⺣", "⺭", "⽧", "⽱", "⻂", "⺲", "啇", "𠂉" }; | ||
var actual = GlyphMap.Replace(input); | ||
Assert.That(actual, Is.EqualTo(expected)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.