From ace69b0094e454ff3617300d17cb2b7ef6870e96 Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Wed, 3 Apr 2024 20:08:33 +0200 Subject: [PATCH] svg-filters: format matrices in complex test --- crates/svg-filters/src/tests/complex.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/crates/svg-filters/src/tests/complex.rs b/crates/svg-filters/src/tests/complex.rs index 9b28304..2936bb4 100644 --- a/crates/svg-filters/src/tests/complex.rs +++ b/crates/svg-filters/src/tests/complex.rs @@ -11,7 +11,10 @@ fn test_chrom_abb() { let chan_r = chromabb.color_matrix( StandardInput::SourceGraphic, ColorMatrixType::Matrix(Box::new([ - 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., + 1., 0., 0., 0., 0., // + 0., 0., 0., 0., 0., // + 0., 0., 0., 0., 0., // + 0., 0., 0., 1., 0., ])), ); let offset_r = chromabb.offset(chan_r, 25., 0.); @@ -20,7 +23,10 @@ fn test_chrom_abb() { let chan_b = chromabb.color_matrix( StandardInput::SourceGraphic, ColorMatrixType::Matrix(Box::new([ - 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 0., + 0., 0., 0., 0., 0., // + 0., 0., 0., 0., 0., // + 0., 0., 1., 0., 0., // + 0., 0., 0., 1., 0., ])), ); let offset_b = chromabb.offset(chan_b, -25., 0.); @@ -31,7 +37,10 @@ fn test_chrom_abb() { let chan_g = chromabb.color_matrix( StandardInput::SourceGraphic, ColorMatrixType::Matrix(Box::new([ - 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., + 0., 0., 0., 0., 0., // + 0., 1., 0., 0., 0., // + 0., 0., 0., 0., 0., // + 0., 0., 0., 1., 0., ])), ); chromabb.composite_arithmetic(composite_rb, chan_g, 0., 1., 1., 0.);