From 6a1f3d40a1350c8eab42c615071b789f57629785 Mon Sep 17 00:00:00 2001 From: f3ath Date: Mon, 17 Jun 2024 20:10:36 -0700 Subject: [PATCH 1/2] Test cleanup --- test/json_path_test.dart | 44 ++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/test/json_path_test.dart b/test/json_path_test.dart index a0058bb..0345fd9 100644 --- a/test/json_path_test.dart +++ b/test/json_path_test.dart @@ -10,31 +10,31 @@ void main() { }); group('Invalid expressions', () { for (final expr in [ - [r"$(key,more)"], - [r"$."], - [r"$.[key]"], - [r"$['foo'bar']"], - [r"$['two'.'some']"], - [r"$[two.some]"], - [r'$$'], - [r'$....'], - [r'$...foo'], - [r'$["""]'], - [r'$["\"]'], - [r'$["\z"]'], - [r'$["]'], - [r'$["foo"bar"]'], - [r'$[1 1]'], - [r'$[1+2]'], - [r'$[1874509822062987436598726432519879857164397163046130756769274369]'], - [r'$[:::]'], - [r'$[]'], - [r''], - [r'.foo'], + r"$(key,more)", + r"$.", + r"$.[key]", + r"$['foo'bar']", + r"$['two'.'some']", + r"$[two.some]", + r'$$', + r'$....', + r'$...foo', + r'$["""]', + r'$["\"]', + r'$["\z"]', + r'$["]', + r'$["foo"bar"]', + r'$[1 1]', + r'$[1+2]', + r'$[1874509822062987436598726432519879857164397163046130756769274369]', + r'$[:::]', + r'$[]', + r'', + r'.foo', ]) { test(expr, () { try { - JsonPath(expr[0]); + JsonPath(expr); fail('Expected FormatException'); } on FormatException catch (e) { expect(e.message, isNotEmpty); From 99a4046590125a2fe0cee9358ebf746ff15fd397 Mon Sep 17 00:00:00 2001 From: f3ath Date: Thu, 27 Jun 2024 17:09:52 -0700 Subject: [PATCH 2/2] CTS --- test/cases/cts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cases/cts b/test/cases/cts index 9dbb98b..87f9420 160000 --- a/test/cases/cts +++ b/test/cases/cts @@ -1 +1 @@ -Subproject commit 9dbb98b6c25cf145e90673af1182815186d7c1b4 +Subproject commit 87f9420d08cee16a6dddf9b9d6fd43bab4bfc7f6