Skip to content

Commit 448714f

Browse files
committed
Try to debug Windows test failure
1 parent 37a917f commit 448714f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/mandelbrot/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,10 @@ mod tests {
223223
let (width, height) = (200, 200);
224224

225225
let dims = (width, height);
226+
eprintln!("Generating Mandelbrot fractal");
226227
let mb = Mandelbrot::generate(dims, algo);
227228

229+
eprintln!("Outputting B/W image to a buffer");
228230
let out = {
229231
let mut out = Vec::with_capacity(width * height);
230232
mb.output_pbm(&mut out).unwrap();
@@ -233,6 +235,7 @@ mod tests {
233235

234236
assert_eq!(out.len(), OUTPUT.len());
235237

238+
eprintln!("Comparing output with expected output");
236239
if out != OUTPUT {
237240
out.into_iter().zip(OUTPUT.into_iter()).enumerate().for_each(
238241
|(i, (a, &b))| {
@@ -253,6 +256,7 @@ mod tests {
253256

254257
#[test]
255258
fn verify_output_simd() {
259+
eprintln!("Running SIMD algorithm test");
256260
verify_algo(Algorithm::Simd);
257261
}
258262
}

0 commit comments

Comments
 (0)