mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Tests: rotate the tone adjustments across sample types in the fused oracle test (#15932)
Each adjustment runs once per mode and once per sample type instead of at every pair, which cuts the scalar-oracle calls to a third.
This commit is contained in:
1 parent
ccd450ae5a
commit
09230a914f
1 file changed
+6
-1
@@ -304,7 +304,12 @@ mod tests {
|
||||
if ti != (mi + si) % 3 && !(mode == ColorMode::Rgb && sample == SampleType::U16 && selection.is_none()) {
|
||||
continue;
|
||||
}
|
||||
for adjustment in &adjustments {
|
||||
// Each adjustment meets every mode once and every sample type once: Invert at Lab/F32 (`lab_invert`),
|
||||
// Threshold at RGB/U16 and Posterize at Lab/U16 (the U16 `depth`), Levels and Curves at U16 (table).
|
||||
for (ai, adjustment) in adjustments.iter().enumerate() {
|
||||
if (ai + mi) % 3 != si {
|
||||
continue;
|
||||
}
|
||||
let mut expected = source.clone();
|
||||
let mut actual = source.clone();
|
||||
super::super::adjust_reference(&mut expected, colors, adjustment, selection, bounds).unwrap();
|
||||
|
||||
Reference in new issue
Block a user