r3bl_tui 0.7.7

TUI library to build modern apps inspired by React, Elm, with Flexbox, CSS, editor component, emoji support, and more
Documentation
// 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

pub mod invalid_inputs;
pub mod valid_jumbo_inputs;
pub mod valid_large_inputs;
pub mod valid_medium_inputs;
pub mod valid_small_inputs;

// Re-export all constants for easy access.
pub use invalid_inputs::*;
pub use valid_jumbo_inputs::*;
pub use valid_large_inputs::*;
pub use valid_medium_inputs::*;
pub use valid_small_inputs::*;