[red-knot] Add support for relative imports (#12910)

Co-authored-by: Carl Meyer <carl@astral.sh>
This commit is contained in:
Alex Waygood 2024-08-16 12:35:27 +01:00 committed by GitHub
parent 9b73532b11
commit a87b27c075
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 230 additions and 15 deletions

View file

@ -89,7 +89,7 @@ fn benchmark_incremental(criterion: &mut Criterion) {
let Case { db, parser, .. } = case;
let result = db.check_file(*parser).unwrap();
assert_eq!(result.len(), 111);
assert_eq!(result.len(), 29);
},
BatchSize::SmallInput,
);
@ -104,7 +104,7 @@ fn benchmark_cold(criterion: &mut Criterion) {
let Case { db, parser, .. } = case;
let result = db.check_file(*parser).unwrap();
assert_eq!(result.len(), 111);
assert_eq!(result.len(), 29);
},
BatchSize::SmallInput,
);