Fix slice location

This commit is contained in:
harupy 2022-12-25 09:37:07 +09:00
parent c0f390ebc6
commit b2ac4f60f1
3 changed files with 123 additions and 1 deletions

View file

@ -233,4 +233,11 @@ class Foo(A, B):
let parse_ast = parse_expression(&source, "<test>").unwrap();
insta::assert_debug_snapshot!(parse_ast);
}
#[test]
fn test_slice() {
let source = String::from("x[1:2:3]");
let parse_ast = parse_expression(&source, "<test>").unwrap();
insta::assert_debug_snapshot!(parse_ast);
}
}