Пример #1
0
        public void ToneNumbers()
        {
            var pm = new ProjectMigration3();
            pm.Migrate(_segmentPool, _project);

            Assert.That(_project.Segmenter.Modifiers.Contains("¹"));
            Assert.That(_project.Segmenter.Modifiers.Contains("²"));
            Assert.That(_project.Segmenter.Modifiers.Contains("³"));
            Assert.That(_project.Segmenter.Modifiers.Contains("⁴"));
            Assert.That(_project.Segmenter.Modifiers.Contains("⁵"));
        }
Пример #2
0
        public void AlveoloPalatalConsonants()
        {
            _project.Segmenter.Consonants.Add("t", FeatureStruct.New(_featSys).Symbol("alveolar").Value);
            _project.Segmenter.Consonants.Add("d", FeatureStruct.New(_featSys).Symbol("alveolar").Value);
            _project.Segmenter.Consonants.Add("n", FeatureStruct.New(_featSys).Symbol("alveolar").Value);
            _project.Segmenter.Consonants.Add("l", FeatureStruct.New(_featSys).Symbol("alveolar").Value);

            var pm = new ProjectMigration3();
            pm.Migrate(_segmentPool, _project);

            Assert.That(_project.Segmenter.Consonants["ȶ"].FeatureStruct, Is.EqualTo(FeatureStruct.New(_featSys).Symbol("alveolo-palatal").Value).Using(FreezableEqualityComparer<FeatureStruct>.Default));
            Assert.That(_project.Segmenter.Consonants["ȡ"].FeatureStruct, Is.EqualTo(FeatureStruct.New(_featSys).Symbol("alveolo-palatal").Value).Using(FreezableEqualityComparer<FeatureStruct>.Default));
            Assert.That(_project.Segmenter.Consonants["ȵ"].FeatureStruct, Is.EqualTo(FeatureStruct.New(_featSys).Symbol("alveolo-palatal").Value).Using(FreezableEqualityComparer<FeatureStruct>.Default));
            Assert.That(_project.Segmenter.Consonants["ȴ"].FeatureStruct, Is.EqualTo(FeatureStruct.New(_featSys).Symbol("alveolo-palatal").Value).Using(FreezableEqualityComparer<FeatureStruct>.Default));
        }