Skip to content

Commit

Permalink
Test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
f3ath committed Jun 18, 2024
1 parent bf52d89 commit 6a1f3d4
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions test/json_path_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6a1f3d4

Please sign in to comment.