From 579c49447ab9846fef0c682b8d3cdac38f4e297d Mon Sep 17 00:00:00 2001 From: sulyi Date: Tue, 22 Nov 2016 02:38:56 +0100 Subject: [PATCH] [utils] Fixing test_js_to_json_landofoz to test /*** rainbo ***/ --- test/test_utils.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/test_utils.py b/test/test_utils.py index d030f0b11..55babcc93 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -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'}")