From 6a1f3d40a1350c8eab42c615071b789f57629785 Mon Sep 17 00:00:00 2001 From: f3ath Date: Mon, 17 Jun 2024 20:10:36 -0700 Subject: [PATCH] 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);