コード例 #1
0
        public void SimpleAssimilationTest()
        {
            var input    = "입니다";
            var expected = "임니다";
            var actual   = DecomposeHangul.ComposeHangul(Assimilation.AssimilateLong(DecomposeHangul.Decompose(input)));

            Assert.Equal(expected, actual);
        }
コード例 #2
0
        string DrawAssimilationPair(bool allPairs)
        {
            string pair;

            do
            {
                pair = DrawPair();
            } while (!Assimilation.HasAssimilation(pair) && !allPairs);
            return(pair);
        }
コード例 #3
0
 protected override string GetSolution(string input) => Assimilation.Assimilate(input);