[utils] Fixing test_js_to_json_landofoz to test /*** rainbo ***/
This commit is contained in:
parent
2e9e076a11
commit
579c49447a
@ -753,15 +753,19 @@ class TestUtil(unittest.TestCase):
|
|||||||
roll: "heroine" */
|
roll: "heroine" */
|
||||||
},
|
},
|
||||||
comment: /* over the rainbow */ "/*",
|
comment: /* over the rainbow */ "/*",
|
||||||
no_comment: "*/"
|
no_comment: "*/",
|
||||||
|
/*******/
|
||||||
|
/***********/
|
||||||
|
/*** ***/
|
||||||
|
/*** ***/
|
||||||
}'''
|
}'''
|
||||||
self.assertEqual(js_to_json(inp), '''{
|
self.assertEqual(js_to_json(inp), '''{
|
||||||
"character": {
|
"character": {
|
||||||
"name": "Dorothy",
|
"name": "Dorothy",
|
||||||
"pet": "Toto"\n \n },
|
"pet": "Toto"
|
||||||
|
\n },
|
||||||
"comment": "/*",
|
"comment": "/*",
|
||||||
"no_comment": "*/"
|
"no_comment": "*/"\n \n \n \n \n }''')
|
||||||
}''')
|
|
||||||
|
|
||||||
def test_js_to_json_edgecases(self):
|
def test_js_to_json_edgecases(self):
|
||||||
on = js_to_json("{abc_def:'1\\'\\\\2\\\\\\'3\"4'}")
|
on = js_to_json("{abc_def:'1\\'\\\\2\\\\\\'3\"4'}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user