Skip to content

Commit 205223e

Browse files
committed
Test for unexpected whitespace in the middle (at start of a token)
1 parent 2ad702c commit 205223e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/JsonApiDotNetCoreExampleTests/UnitTests/QueryStringParameters/FilterParseTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public void Reader_Is_Enabled(JsonApiQueryStringParameters parametersDisabled, b
6767
[InlineData("filter[posts]", "equals(author,'some')", "Attribute 'author' does not exist on resource 'blogPosts'.")]
6868
[InlineData("filter[posts]", "lessThan(author,null)", "Attribute 'author' does not exist on resource 'blogPosts'.")]
6969
[InlineData("filter", " ", "Unexpected whitespace.")]
70+
[InlineData("filter", "contains(owner.displayName, )", "Unexpected whitespace.")]
7071
[InlineData("filter", "some", "Filter function expected.")]
7172
[InlineData("filter", "equals", "( expected.")]
7273
[InlineData("filter", "equals'", "Unexpected ' outside text.")]

0 commit comments

Comments
 (0)