Add some more test cases for TestJavascriptEscape.

This commit is contained in:
Florian Bruhin 2015-08-04 12:07:49 +02:00
parent 93d27cbb5f
commit 0ce9ae070c

View File

@ -513,6 +513,11 @@ class TestJavascriptEscape:
"foo'bar": r"foo\'bar",
'foo"bar': r'foo\"bar',
'one\\two\rthree\nfour\'five"six': r'one\\two\rthree\nfour\'five\"six',
'\x00': r'\x00',
'hellö': 'hellö',
'': '',
'\x80Ā': '\x80Ā',
'𐀀\x00𐀀\x00': r'𐀀\x00𐀀\x00',
}
@pytest.mark.parametrize('before, after', TESTS.items())