コード例 #1
0
ファイル: ProjectMigration3Tests.cs プロジェクト: rmunn/cog
        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
ファイル: ProjectMigration3Tests.cs プロジェクト: rmunn/cog
        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));
        }