koto_random 0.16.1

A Koto library for working with random numbers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use koto_runtime::{Result, prelude::*};
use koto_test_utils::run_koto_examples_in_markdown;

#[test]
fn random_docs() -> Result<()> {
    let mut prelude_entries = ValueMap::default();
    prelude_entries.insert("random".into(), koto_random::make_module().into());
    let markdown = include_str!(concat!(
        env!("CARGO_MANIFEST_DIR"),
        "/../../docs/libs/random.md"
    ));
    run_koto_examples_in_markdown(markdown, prelude_entries)
}