Skip to content

Commit

Permalink
Ref #35, try to reproduce wrong hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
damienalexandre committed May 6, 2017
1 parent f04ed96 commit 3d81614
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/JoliTypo/Tests/FrenchTest.php
Expand Up @@ -164,4 +164,22 @@ public function testNumericDoesNotBreakOtherFixers()

$this->assertEquals($fixed, $fixer->fix($to_fix));
}

/**
* @see https://github.com/jolicode/JoliTypo/issues/35
*/
public function testWeirdHyphen()
{
$fixer = new Fixer($this->fr_fixers);

$fixer->setLocale('fr');
$this->assertInstanceOf('JoliTypo\Fixer', $fixer);

$to_fix = <<<HTML
<p><a href="http://foobar.dev/storage/image-1493026187479.gif" target="_self"><img src="http://foobar.dev/storage/image-1493026187479.gif" alt="file"></a></p>
HTML;

$this->assertNotContains("&shy;", $fixer->fix($to_fix));
$this->assertNotContains(Fixer::SHY, $fixer->fix($to_fix));
}
}

0 comments on commit 3d81614

Please sign in to comment.