Use 1-indexed rows in CLI and log output (resolves #287)

This commit is contained in:
Jacob Mitchell 2019-03-14 12:59:29 -07:00
parent 1aaad66a03
commit c8d040ca26
6 changed files with 33 additions and 10 deletions

View file

@ -56,6 +56,10 @@ fn test_parsing_with_logging() {
"reduce sym:struct_item, child_count:3".to_string()
)));
assert!(messages.contains(&(LogType::Lex, "skip character:' '".to_string())));
for (_, m) in &messages {
assert!(!m.contains("row:0"));
}
}
#[test]