1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Copyright (c) 2025 R3BL LLC. Licensed under Apache License, Version 2.0.
//! Test data module for markdown parser compatibility testing.
//!
//! # Important: Null Padding Requirement
//!
//! **WARNING**: The `&str` constants provided by this module CANNOT be used directly with
//! the markdown parser! The parser now requires input from `ZeroCopyGapBuffer` which
//! enforces a "null padding invariant" where lines end with `\n` followed by zero or more
//! `\0` characters.
//!
//! ## Required Conversion
//!
//! Before using any test data from this module, you MUST convert
//! it to `ZeroCopyGapBuffer`:
//!
//! <!-- It is ok to use ignore here - references internal helper functions not in public
//! API -->
//!
//! ```ignore
//! use crate::{convert_str_to_gap_buffer, convert_vec_lines_to_gap_buffer};
//!
//! // For string constants:
//! let gap_buffer = convert_str_to_gap_buffer(SOME_TEST_CONSTANT);
//! let result = parse_markdown(&gap_buffer);
//!
//! // For vec of GCString lines:
//! let gap_buffer = convert_vec_lines_to_gap_buffer(&vec_of_gc_strings);
//! let result = parse_markdown(&gap_buffer);
//! ```
//!
//! ## Module Organization
//!
//! This module organizes test inputs by complexity and content type:
//! - `invalid_inputs`: Edge cases and malformed syntax
//! - `valid_small_inputs`: Simple formatting and single lines
//! - `valid_medium_inputs`: Multi-paragraph and structured content
//! - `valid_large_inputs`: Complex nested structures
//! - `valid_jumbo_inputs`: Real-world files and comprehensive documents
// Re-export all constants for easy access.
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;