mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 13:33:50 +00:00
Remove allow(pedantic)
from formatter (#6549)
This commit is contained in:
parent
c39bcbadff
commit
9584f613b9
25 changed files with 348 additions and 316 deletions
|
@ -877,8 +877,8 @@ mod tests {
|
|||
#[test]
|
||||
fn single_quoted_multiline_string_containing_comment() {
|
||||
let test_case = tokenize(
|
||||
r#"'This string contains a hash looking like a comment\
|
||||
# This is not a comment'"#,
|
||||
r"'This string contains a hash looking like a comment\
|
||||
# This is not a comment'",
|
||||
);
|
||||
|
||||
assert_debug_snapshot!(test_case.tokenize_reverse());
|
||||
|
@ -928,14 +928,14 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn string_with_escaped_quote() {
|
||||
let test_case = tokenize(r#"'a string \' # containing a hash ' # finally a comment"#);
|
||||
let test_case = tokenize(r"'a string \' # containing a hash ' # finally a comment");
|
||||
|
||||
assert_debug_snapshot!(test_case.tokenize_reverse());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn string_with_double_escaped_backslash() {
|
||||
let test_case = tokenize(r#"'a string \\' # a comment '"#);
|
||||
let test_case = tokenize(r"'a string \\' # a comment '");
|
||||
|
||||
assert_debug_snapshot!(test_case.tokenize_reverse());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue