add tests for string literals (particularly end-of-line continuations)
diff --git a/json5/tests/json5_test.py b/json5/tests/json5_test.py index 9a9b463..b349151 100644 --- a/json5/tests/json5_test.py +++ b/json5/tests/json5_test.py
@@ -78,6 +78,15 @@ "foo": "bar" }, obj) + def test_strings(self): + self.check('"foo"', 'foo') + self.check("'foo'", 'foo') + self.check("'\x66oo'", 'foo') + self.check('"foo\\\nbar"', 'foo\nbar') + self.check("'foo\\\nbar'", 'foo\nbar') + self.assertRaises(Exception, self.check, '"\n', None) + self.assertRaises(Exception, self.check, "'\n", None) + def test_syntax_errors(self): try: json5.loads('')