import CoreGraphics import XCTest @testable import LChatCore // 🤖 The Mac feed's scroll-position arithmetic (FeedGeometry): the reading the // per-thread scroll memory stores and the prepend re-anchor restores. Pinned // here because both callers must agree — a drifting reading is a jumping feed. final class FeedGeometryTests: XCTestCase { // A stack of equal rows laid out from `top`, keyed 1…n. private func rows(count: Int, height: CGFloat, top: CGFloat) -> [Int64: CGRect] { var out: [Int64: CGRect] = [:] for i in 0..