mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
17 lines
462 B
Rust
17 lines
462 B
Rust
// #[macro_use]
|
|
// extern crate pretty_assertions;
|
|
|
|
extern crate arena_pool;
|
|
|
|
#[cfg(test)]
|
|
mod test_arena_pool {
|
|
use arena_pool::pool::{ArenaIter, ArenaPool};
|
|
|
|
#[test]
|
|
fn empty_pool() {
|
|
// Neither of these does anything, but they
|
|
// at least shouldn't panic or anything.
|
|
let _: (ArenaPool<()>, ArenaIter<()>) = ArenaPool::new(0, 0);
|
|
let _: (ArenaPool<()>, ArenaIter<()>) = ArenaPool::with_chunk_size(0, 0, 0);
|
|
}
|
|
}
|