Start string location at kind or quote prefix

This commit is contained in:
Charlie Marsh 2022-10-15 11:03:45 -04:00
parent 6211a3a3a8
commit 3397737a76
8 changed files with 57 additions and 18 deletions

View file

@ -131,4 +131,11 @@ mod tests {
let parse_ast = parse_program(&source, "<test>").unwrap();
insta::assert_debug_snapshot!(parse_ast);
}
#[test]
fn test_parse_string_triple_quotes_with_kind() {
let source = String::from("u'''Hello, world!'''");
let parse_ast = parse_program(&source, "<test>").unwrap();
insta::assert_debug_snapshot!(parse_ast);
}
}