//! Shared rendition size limits.usesuper::*;// The assertions below ARE on constants: the point is to pin the numbers to// the measurement, so a future edit that drops the cap under the worst case// goes red here rather than in `_media_tiers_skips`.#[allow(clippy::assertions_on_constants)]#[test]fn the_preview_cap_clears_the_worst_measured_24px_jpeg_with_room() {// 1,260 base64 bytes is per-pixel noise at quality 0.1 — the biggest a// 24 px baseline JPEG ImageIO writes. A cap under it refuses photographs// by the thousand, which is what 1,024 did on the Mac.const { assert!(PREVIEW_MAX_BASE64_BYTES >= 1_260) };// And not so loose that the arithmetic in the doc comment stops holding:// fifty thousand of them stay under eighty megabytes. assert!(PREVIEW_MAX_BASE64_BYTES * 50_000 <= 80 * 1_000_000); assert_eq!(THUMB_MAX_BYTES, 20 * 1_024);}