Commit 934560ac authored by Michal Čihař's avatar Michal Čihař

Add test for percent handling in format strings

parent 6e47769d
......@@ -227,6 +227,24 @@ class PHPFormatCheckTest(TestCase):
False
))
def test_wrong_percent_format(self):
self.assertTrue(self.check.check_format(
u'%s%% (0.1%%)',
u'%s%% (0.1%)',
MockUnit('php_wrong_percent_format'),
0,
False
))
def test_missing_percent_format(self):
self.assertFalse(self.check.check_format(
u'%s%%',
u'%s percent',
MockUnit('php_missing_percent_format'),
0,
False
))
class CFormatCheckTest(TestCase):
def setUp(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment