Refine posistion display.

This commit is contained in:
Stephen Chung
2021-04-23 14:24:53 +08:00
parent 1fbbb2a40d
commit fc782c5563
5 changed files with 79 additions and 115 deletions

View File

@@ -205,7 +205,7 @@ fn test_map_json() -> Result<(), Box<EvalAltResult>> {
assert!(matches!(
*engine.parse_json(" 123", true).expect_err("should error"),
EvalAltResult::ErrorParsing(ParseErrorType::MissingToken(token, _), pos)
EvalAltResult::ErrorParsing(ParseErrorType::MissingToken(token, _), _)
if token == "{"
));