Skip to main content

i_triangle/
lib.rs

1#![no_std]
2extern crate alloc;
3
4#[cfg(test)]
5extern crate std;
6
7#[cfg(test)]
8pub(crate) mod test_util {
9    const QUICK_RANDOM_DIVISOR: usize = 20;
10    const FULL_RANDOM_TESTS_ENV: &str = "ITRIANGLE_FULL_RANDOM_TESTS";
11
12    pub(crate) fn random_cases(full_count: usize) -> usize {
13        if std::env::var_os(FULL_RANDOM_TESTS_ENV).is_some() {
14            full_count
15        } else {
16            full_count.div_ceil(QUICK_RANDOM_DIVISOR)
17        }
18    }
19}
20
21pub mod advanced;
22pub mod float;
23pub mod geom;
24mod index;
25pub mod int;
26pub mod location;
27pub mod tessellation;
28
29pub use i_overlay;