mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
10 lines
221 B
Python
10 lines
221 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
def test_jsdump():
|
||
|
from sphinx.util.jsdump import dumps
|
||
|
|
||
|
assert dumps({'1a': 1}) == '{"1a":1}'
|
||
|
assert dumps({'a1': 1}) == '{a1:1}'
|
||
|
|
||
|
assert dumps({u'a\xe8': 1}) == '{"a\\u00e8":1}'
|