diff options
author | Przemyslaw Wegrzyn <pwegrzyn@codepainters.com> | 2022-05-13 00:15:48 +0200 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2022-10-31 12:41:49 +0200 |
commit | c7d04e8cb7bd60ff305d8bc6df2ce8a3f92c0223 (patch) | |
tree | 9592d2554ea7d0db7ac3363b4e20cae0a6af8eea /tests | |
parent | 8f5757cc85402a46c1db722f08c18cfa7f119858 (diff) | |
download | babel-c7d04e8cb7bd60ff305d8bc6df2ce8a3f92c0223.tar.gz |
Support for hex escapes in JavaScript string literals
Diffstat (limited to 'tests')
-rw-r--r-- | tests/messages/test_jslexer.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/messages/test_jslexer.py b/tests/messages/test_jslexer.py index 35204ee..bd6322e 100644 --- a/tests/messages/test_jslexer.py +++ b/tests/messages/test_jslexer.py @@ -4,6 +4,8 @@ from babel.messages import jslexer def test_unquote(): assert jslexer.unquote_string('""') == '' assert jslexer.unquote_string(r'"h\u00ebllo"') == u"hëllo" + assert jslexer.unquote_string(r'"h\xebllo"') == u"hëllo" + assert jslexer.unquote_string(r'"\xebb"') == u"ëb" def test_dollar_in_identifier(): |