Skip to content

Commit f8f6aa1

Browse files
committed
wip
1 parent da83265 commit f8f6aa1

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

src/GoatQuery/src/Lexer/Lexer.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,4 @@ private string ReadString()
158158

159159
return _input.Substring(currentPosition, _position - currentPosition);
160160
}
161-
162-
private string ReadNumber()
163-
{
164-
var currentPosition = _position;
165-
166-
while (IsDigit(_character))
167-
{
168-
ReadCharacter();
169-
}
170-
171-
return _input.Substring(currentPosition, _position - currentPosition);
172-
}
173161
}

src/GoatQuery/tests/Filter/FilterParserTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void Test_ParsingFilterStatement(string input, string expectedLeft, strin
4545
[InlineData("id contains 10")]
4646
[InlineData("id contaiins '10'")]
4747
[InlineData("id eq John'")]
48-
public void Test_ParsingInvalidFilterThrowsException(string input)
48+
public void Test_ParsingInvalidFilterReturnsError(string input)
4949
{
5050
var lexer = new QueryLexer(input);
5151
var parser = new QueryParser(lexer);

src/GoatQuery/tests/Filter/FilterTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public void Test_Filter(string filter, IEnumerable<User> expected)
221221

222222
[Theory]
223223
[InlineData("NonExistentProperty eq 'John'")]
224-
public void Test_InvalidFilterThrowsException(string filter)
224+
public void Test_InvalidFilterReturnsError(string filter)
225225
{
226226
var query = new Query
227227
{

0 commit comments

Comments
 (0)