Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Mdexp Test Suite

This book contains the test suite for mdexp, organized as documentation.

Each test file is written in OCaml with mdexp directives, and the corresponding markdown is generated automatically. The tests verify that the examples work correctly, while the generated documentation shows what mdexp produces.

Structure

  • Examples - Various mdexp features demonstrated through test files
  • Toplevel - OCaml toplevel integration for REPL-style documentation

Building

The markdown files are generated by running:

dune runtest

To view this book:

cd repo/mdexp/test
mdbook serve --open

Syntax Highlighting Test

Here’s a Rust code fragment to test if syntax highlighting works:

fn main() {
    let message = "Hello, World!";
    println!("{}", message);
}

And an OCaml code fragment:

let greet name =
  Printf.printf "Hello, %s!\n" name

let () = greet "World"