a73x

54ba5780

Pin text coverage preset values in tests

a73x   2026-04-09 08:02

Commit message
Pin text coverage preset values in tests

src/renderer.zig
Old New
@@ -1493,11 +1493,11 @@ test "coverageVariantParams steepens progressively" {
1493 const medium = coverageVariantParams(.medium); 1493 const medium = coverageVariantParams(.medium);
1494 const crisp = coverageVariantParams(.crisp); 1494 const crisp = coverageVariantParams(.crisp);
1495 1495
1496 try std.testing.expectEqualDeep([2]f32{ 1.15, 0.0 }, mild);
1497 try std.testing.expectEqualDeep([2]f32{ 1.3, 0.0 }, medium);
1498 try std.testing.expectEqualDeep([2]f32{ 1.55, -0.08 }, crisp);
1496 try std.testing.expect(mild[0] < medium[0]); 1499 try std.testing.expect(mild[0] < medium[0]);
1497 try std.testing.expect(medium[0] < crisp[0]); 1500 try std.testing.expect(medium[0] < crisp[0]);
1498 try std.testing.expectEqual(@as(f32, 0.0), mild[1]);
1499 try std.testing.expectEqual(@as(f32, 0.0), medium[1]);
1500 try std.testing.expectEqual(@as(f32, -0.08), crisp[1]);
1501 } 1501 }
1502 1502
1503 test "range upload falls back to full upload when capacity must grow" { 1503 test "range upload falls back to full upload when capacity must grow" {