summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-24 15:05:59 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-24 15:05:59 +0200
commitf1025071edfb787309a75d4bb68bec0c2bd906bb (patch)
treeb28d6cf05b8a8f29acbfb44093e3c9bface802b6 /tests/src
parentb96b7b7ee12a5d1c8e8c24c95b58b7ca03cec44b (diff)
Tidy up
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/tests.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/src/tests.rs b/tests/src/tests.rs
index ee87f3ed..4aa459af 100644
--- a/tests/src/tests.rs
+++ b/tests/src/tests.rs
@@ -2,13 +2,14 @@
use std::cell::{RefCell, RefMut};
use std::collections::{HashMap, HashSet};
+use std::env;
use std::ffi::OsStr;
use std::fmt::Write as FmtWrite;
-use std::io::Write;
+use std::fs;
+use std::io::{self, Write};
+use std::iter;
use std::ops::Range;
use std::path::{Path, PathBuf};
-use std::{env, io};
-use std::{fs, iter};
use clap::Parser;
use comemo::{Prehashed, Track};
@@ -555,10 +556,11 @@ fn test_part(
}
// Map errors to range and message format, discard traces and errors from
- // other files. Collect hints.
+ // other files, collect hints.
//
- // This has one caveat: due to the format of the expected hints, we can not verify if a hint belongs
- // to a error or not. That should be irrelevant however, as the line of the hint is still verified.
+ // This has one caveat: due to the format of the expected hints, we can not
+ // verify if a hint belongs to a error or not. That should be irrelevant
+ // however, as the line of the hint is still verified.
let actual_errors_and_hints: HashSet<UserOutput> = errors
.into_iter()
.filter(|error| error.span.source() == id)