mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
PR #12644: the eval doc comment back on its own test
Co-Authored-By: x-labb <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
b5a79dafc3
commit
597b220cf0
1 file changed
+1
-1
@@ -458,7 +458,6 @@ mod tests {
|
||||
assert!((at(&s, 0.25)[0] - 0.5).abs() < 0.01);
|
||||
}
|
||||
|
||||
/// `eval` guards its own stops instead of relying on `bake`'s two-stop check.
|
||||
#[test]
|
||||
fn smooth_opacity_clamps_constant_stops() {
|
||||
let flat = vec![(0.0, 0.4), (1.0, 0.4)];
|
||||
@@ -467,6 +466,7 @@ mod tests {
|
||||
assert_eq!(bake_smooth_opacity(vec![(0.5, f32::NAN)], &[]), vec![(0.5, 1.0)]);
|
||||
}
|
||||
|
||||
/// `eval` guards its own stops instead of relying on `bake`'s two-stop check.
|
||||
#[test]
|
||||
fn eval_with_fewer_than_two_stops_does_not_index_out_of_range() {
|
||||
assert_eq!(eval(&[], &[], 1.0, 0.5, Method::Smooth), [0.0; 3]);
|
||||
|
||||
Reference in new issue
Block a user