MCPcopy Create free account
hub / github.com/astral-sh/ruff / test_modes

Function test_modes

crates/ruff_python_parser/src/parser/tests.rs:7–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6#[test]
7fn test_modes() {
8 let source = "a[0][1][2][3][4]";
9
10 assert!(parse(source, ParseOptions::from(Mode::Expression)).is_ok());
11 assert!(parse(source, ParseOptions::from(Mode::Module)).is_ok());
12}
13
14#[test]
15fn test_expr_mode_invalid_syntax1() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected