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

Function test_fstring_comments

crates/ruff_python_parser/src/lexer.rs:2502–2509  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2500
2501 #[test]
2502 fn test_fstring_comments() {
2503 let source = r#"f"""
2504# not a comment { # comment {
2505 x
2506} # not a comment
2507""""#;
2508 assert_snapshot!(lex_source(source));
2509 }
2510
2511 #[test]
2512 fn test_fstring_with_ipy_escape_command() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected