Cotton code
14 lines · 588 B · RustRaw
//! What the rendered `CottonMark.swift` must say — the parts a Swift compiler//! would accept either way.use super::*;#[test]fn the_content_box_is_written_as_the_ink_box_not_the_point_box() {    // A generator that fitted by the POINT extents would clip the apex's round    // join, which sits on x = 0. The rendered box has to start left of it.    let swift = render();    let at = swift.find("contentBounds").expect("that box is written");    let written = &swift[at..at + 120];    assert!(written.contains("x: -"), "contentBounds.minX should be negative: {written}");}