public void EndOfLine_CRLF_ReturnsLF() { var parser = Chars.EndOfLine(); var result = parser.Parse("\r\n"); ParseAssert.ValueEquals('\n', result); }
public void EndOfLine_NoMatch_ReturnsError() { var parser = Chars.EndOfLine(); var result = parser.Parse("abc"); ParseAssert.IsError(result); }