Skip to content

Commit 2375f01

Browse files
committed
Add missing test for schema parser
1 parent d7f52b3 commit 2375f01

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The current version 3.0.1 of GraphQL-core is up-to-date
1616
with GraphQL.js version 14.5.8.
1717

1818
All parts of the API are covered by an extensive test suite
19-
of currently 1990 unit tests.
19+
of currently 1991 unit tests.
2020

2121

2222
## Documentation

tests/language/test_schema_parser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,11 @@ def union_fails_with_leading_double_pipe():
573573
"union Hello = || Wo | Rld", "Expected Name, found |", (1, 16)
574574
)
575575

576+
def union_fails_with_double_pipe():
577+
assert_syntax_error(
578+
"union Hello = Wo || Rld", "Expected Name, found |", (1, 19)
579+
)
580+
576581
def union_fails_with_trailing_pipe():
577582
assert_syntax_error(
578583
"union Hello = | Wo | Rld |", "Expected Name, found <EOF>", (1, 27)

0 commit comments

Comments
 (0)