#![cfg(feature = "bench")]

use pdfmake_rust::benchmark_fixtures::{build_pages_100_document, build_table_1000_document, build_text_10k_document};

#[test]
fn build_text_10k_document_contains_single_text_block() {
    let document = build_text_10k_document(10_000);
    assert_eq!(document.content.len(), 1);
}

#[test]
fn build_table_1000_document_contains_single_table_block() {
    let document = build_table_1000_document(1_000);
    assert_eq!(document.content.len(), 1);
}

#[test]
fn build_pages_100_document_contains_100_page_nodes() {
    let document = build_pages_100_document(100);
    assert_eq!(document.content.len(), 100);
}
