Skip to content

Commit

Permalink
Propagate v2.3 changes to a few unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kesac committed Oct 11, 2023
1 parent 7b3d918 commit d40b30d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Syllabore/Syllabore.Tests/SyllableProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ public void Provider_WithCustomVowelProbability_AffectsNameGenerationSuccess()
var provider = new SyllableGenerator()
.WithVowelSequences("aa")
.WithProbability(x => x
.OfVowels(1.0)
.OfVowelIsSequence(0));
.OfVowels(1.0, 0));

var generator = new NameGenerator().UsingSyllables(provider);

Expand All @@ -247,8 +246,7 @@ public void Provider_WithCustomVowelProbability_AffectsNameGenerationSuccess()
// Defining at least one vowel sequence, set to 100% probability
// without any possibility of vowels starting name shoudl work
provider.WithProbability(x => x
.OfVowels(1.0)
.OfVowelIsSequence(1.0));
.OfVowels(1.0, 1.0));

for (int i = 0; i < 1000; i++)
{
Expand Down Expand Up @@ -282,7 +280,7 @@ public void Provider_WithCustomComponents_AllComponentsAppearInProviderOutput()
.WithTrailingConsonants("d")
.WithTrailingConsonantSequences("ff")
.WithProbability(x => x
.OfVowelIsSequence(0.50)
.OfVowels(1, 0.50)
.OfLeadingConsonants(0.50)
.OfTrailingConsonants(0.50)
.OfLeadingVowelsInStartingSyllable(0.25));
Expand Down

0 comments on commit d40b30d

Please sign in to comment.