Skip to content

Commit

Permalink
Update the tests to adapt them to the changes
Browse files Browse the repository at this point in the history
These are the better alternatives that definitely improved the
hyphenation
  • Loading branch information
heiglandreas committed Jun 11, 2020
1 parent 1abd1c2 commit 9e6fcaa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/HyphenatorFeatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
*/
class HyphenatorFeatureTest extends TestCase
{

/**
* @dataProvider hyphenationOfSingleWordWithArrayOutputProvider
*/
Expand All @@ -61,7 +61,7 @@ public function testHyphenationOfSingleWordWithArrayOutput($word, $language, $ex
->setWordMin(4)
->setFilters('NonStandard')
->setTokenizers('Whitespace, Punctuation');

$h = new h\Hyphenator();
$h->setOptions($o);
$this->assertEquals($expected, $h->hyphenate($word));
Expand Down Expand Up @@ -114,12 +114,12 @@ public function hyphenationOfSingleWordWithDefaultOutputProvider()
['donaudampfschifffahrt ', 'de_DE', 'do^nau^dampf^schiff^fahrt '],
// ['altbaucharme', 'de_DE', 'alt-bau-charme'],
['otto ', 'de_DE', 'ot^to '],
['daniel ', 'de_DE', 'da^niel '],
['daniel ', 'de_DE', 'da^ni^el '],
// Sturm will not be hyphenated…
['aussichtsturm ', 'de_DE', 'aus^sichtsturm '],
['aussichtsturm ', 'de_DE', 'aus^sichts^turm '],
// Sturm will be hyphenated…
['aussichtsturm ', 'de_DE', 'aus^sicht^sturm ', h\Hyphenator::QUALITY_NORMAL],
['urinstinkt ', 'de_DE', 'ur^instinkt ', h\Hyphenator::QUALITY_HIGHEST],
['aussichtsturm ', 'de_DE', 'aus^sicht^s^turm ', h\Hyphenator::QUALITY_NORMAL],
['urinstinkt ', 'de_DE', 'ur^in^stinkt ', h\Hyphenator::QUALITY_HIGHEST],
['Brücke ', 'de_DE', 'Brü^cke ', h\Hyphenator::QUALITY_NORMAL],
['Röcke ', 'de_DE', 'Rö^cke '],
];
Expand Down

0 comments on commit 9e6fcaa

Please sign in to comment.