1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-05 07:33:34 +08:00

[utils] Fixing test_js_to_json_landofoz to test /*** rainbo ***/

This commit is contained in:
sulyi
2016-11-22 02:38:56 +01:00
Unverified
parent 2e9e076a11
commit 579c49447a
+8 -4
View File
@@ -753,15 +753,19 @@ class TestUtil(unittest.TestCase):
roll: "heroine" */
},
comment: /* over the rainbow */ "/*",
no_comment: "*/"
no_comment: "*/",
/*******/
/***********/
/*** ***/
/*** ***/
}'''
self.assertEqual(js_to_json(inp), '''{
"character": {
"name": "Dorothy",
"pet": "Toto"\n \n },
"pet": "Toto"
\n },
"comment": "/*",
"no_comment": "*/"
}''')
"no_comment": "*/"\n \n \n \n \n }''')
def test_js_to_json_edgecases(self):
on = js_to_json("{abc_def:'1\\'\\\\2\\\\\\'3\"4'}")