Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamess-Lucass committed Nov 5, 2024
1 parent da83265 commit f8f6aa1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
12 changes: 0 additions & 12 deletions src/GoatQuery/src/Lexer/Lexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,4 @@ private string ReadString()

return _input.Substring(currentPosition, _position - currentPosition);
}

private string ReadNumber()
{
var currentPosition = _position;

while (IsDigit(_character))
{
ReadCharacter();
}

return _input.Substring(currentPosition, _position - currentPosition);
}
}
2 changes: 1 addition & 1 deletion src/GoatQuery/tests/Filter/FilterParserTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void Test_ParsingFilterStatement(string input, string expectedLeft, strin
[InlineData("id contains 10")]
[InlineData("id contaiins '10'")]
[InlineData("id eq John'")]
public void Test_ParsingInvalidFilterThrowsException(string input)
public void Test_ParsingInvalidFilterReturnsError(string input)
{
var lexer = new QueryLexer(input);
var parser = new QueryParser(lexer);
Expand Down
2 changes: 1 addition & 1 deletion src/GoatQuery/tests/Filter/FilterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public void Test_Filter(string filter, IEnumerable<User> expected)

[Theory]
[InlineData("NonExistentProperty eq 'John'")]
public void Test_InvalidFilterThrowsException(string filter)
public void Test_InvalidFilterReturnsError(string filter)
{
var query = new Query
{
Expand Down

0 comments on commit f8f6aa1

Please sign in to comment.