Lower threshold for 2020 tests (#3030)

* Lower threshold for 2020 tests

Now that the tests zoom into the model and center it before taking a
snapshot, they should be less sensitive.

* Genuine, nontrivial changes to the integration test images
This commit is contained in:
Adam Chalmers
2024-07-15 17:41:41 -05:00
committed by GitHub
parent aca13d087b
commit d1a2bd01ca
16 changed files with 179 additions and 115 deletions

View File

@ -837,7 +837,7 @@ fn generate_code_block_test(fn_name: &str, code_block: &str, index: usize) -> pr
// Read the output file.
let actual = image::io::Reader::open(output_file).unwrap().decode().unwrap();
twenty_twenty::assert_image(&format!("tests/outputs/{}.png", #test_name_str), &actual, 1.0);
twenty_twenty::assert_image(&format!("tests/outputs/{}.png", #test_name_str), &actual, 0.99);
}
}

View File

@ -86,7 +86,7 @@ mod test_examples_someFn {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_someFn0"),
&actual,
1.0,
0.99,
);
}
}

View File

@ -86,7 +86,7 @@ mod test_examples_someFn {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_someFn0"),
&actual,
1.0,
0.99,
);
}
}

View File

@ -86,7 +86,7 @@ mod test_examples_show {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_show0"),
&actual,
1.0,
0.99,
);
}
@ -176,7 +176,7 @@ mod test_examples_show {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_show1"),
&actual,
1.0,
0.99,
);
}
}

View File

@ -86,7 +86,7 @@ mod test_examples_show {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_show0"),
&actual,
1.0,
0.99,
);
}
}

View File

@ -88,7 +88,7 @@ mod test_examples_my_func {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_my_func0"),
&actual,
1.0,
0.99,
);
}
@ -178,7 +178,7 @@ mod test_examples_my_func {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_my_func1"),
&actual,
1.0,
0.99,
);
}
}

View File

@ -88,7 +88,7 @@ mod test_examples_line_to {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_line_to0"),
&actual,
1.0,
0.99,
);
}
@ -178,7 +178,7 @@ mod test_examples_line_to {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_line_to1"),
&actual,
1.0,
0.99,
);
}
}

View File

@ -86,7 +86,7 @@ mod test_examples_min {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_min0"),
&actual,
1.0,
0.99,
);
}
@ -176,7 +176,7 @@ mod test_examples_min {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_min1"),
&actual,
1.0,
0.99,
);
}
}

View File

@ -86,7 +86,7 @@ mod test_examples_show {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_show0"),
&actual,
1.0,
0.99,
);
}
}

View File

@ -86,7 +86,7 @@ mod test_examples_import {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_import0"),
&actual,
1.0,
0.99,
);
}
}

View File

@ -86,7 +86,7 @@ mod test_examples_import {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_import0"),
&actual,
1.0,
0.99,
);
}
}

View File

@ -86,7 +86,7 @@ mod test_examples_import {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_import0"),
&actual,
1.0,
0.99,
);
}
}

View File

@ -86,7 +86,7 @@ mod test_examples_show {
twenty_twenty::assert_image(
&format!("tests/outputs/{}.png", "serial_test_example_show0"),
&actual,
1.0,
0.99,
);
}
}