mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-22 20:45:28 +00:00
Fix slice location
This commit is contained in:
parent
c0f390ebc6
commit
b2ac4f60f1
3 changed files with 123 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue