mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Add // new comment to highlight changed test_runner signature
This commit is contained in:
@@ -555,7 +555,7 @@ The last step is to update our `test_runner` to use the new `Testable` trait:
|
|||||||
// in src/main.rs
|
// in src/main.rs
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
pub fn test_runner(tests: &[&dyn Testable]) {
|
pub fn test_runner(tests: &[&dyn Testable]) { // new
|
||||||
serial_println!("Running {} tests", tests.len());
|
serial_println!("Running {} tests", tests.len());
|
||||||
for test in tests {
|
for test in tests {
|
||||||
test.run(); // new
|
test.run(); // new
|
||||||
|
|||||||
Reference in New Issue
Block a user