mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Improve display of assert_public_ty
assertion failures (#13577)
While working on https://github.com/astral-sh/ruff/pull/13576 I noticed that it was really hard to tell which assertion failed in some of these test cases. This could be expanded to elsewhere, but I've heard this test suite format won't be around for long?
This commit is contained in:
parent
c9c748a79e
commit
9d8a4c0057
1 changed files with 5 additions and 1 deletions
|
@ -2948,7 +2948,11 @@ mod tests {
|
|||
let file = system_path_to_file(db, file_name).expect("Expected file to exist.");
|
||||
|
||||
let ty = global_symbol_ty(db, file, symbol_name);
|
||||
assert_eq!(ty.display(db).to_string(), expected);
|
||||
assert_eq!(
|
||||
ty.display(db).to_string(),
|
||||
expected,
|
||||
"Mismatch for symbol '{symbol_name}' in '{file_name}'"
|
||||
);
|
||||
}
|
||||
|
||||
fn assert_scope_ty(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue