ag-protocol 0.19.4

Agentty is an ADE (Agentic Development Environment) for structured, controllable AI-assisted software development.
Documentation
//! Markdown code-fence delimiter sizing unit tests.

use crate::fence::diff_fence;

#[test]
/// Ensures the fence is at least three backticks and outgrows the longest
/// backtick run in the payload.
fn test_diff_fence_outgrows_longest_backtick_run() {
    // Arrange
    let cases = [
        ("", "```"),
        ("plain `code` text", "```"),
        ("before ```` after `` end", "`````"),
    ];

    for (content, expected_fence) in cases {
        // Act
        let fence = diff_fence(content);

        // Assert
        assert_eq!(fence, expected_fence, "{content:?}");
    }
}