Exemplo n.º 1
0
        public void GenerateSandhiSyllables_ThreeSyllables(string original, string sandhi)
        {
            var o = original.Split();
            var s = sandhi.Split();

            Assert.Equal(
                (s[0], s[1], s[2]),
                SandhiGenerator.GenerateSandhiSyllables(o[0], o[1], o[2]));
        }
Exemplo n.º 2
0
        public void GenerateSandhiSyllables_FourAndMoreSyllables(string original, string sandhi)
        {
            var o        = original.Split();
            var expected = sandhi.Split();

            Assert.Equal(
                expected,
                SandhiGenerator.GenerateSandhiSyllables(o));
        }
Exemplo n.º 3
0
 public void GenerateSandhiSyllables_TwoSyllables(string first, string second, string sandhiFirst, string sandhiSecond)
 {
     Assert.Equal(
         (sandhiFirst, sandhiSecond),
         SandhiGenerator.GenerateSandhiSyllables(first, second));
 }