Small tweaks

This commit is contained in:
paladin 2026-10-05 07:32:40 +01:00
parent d037e22164
commit f3922ff84d
7 changed files with 182 additions and 23 deletions

View file

@ -1,9 +1,18 @@
pub mod gc;
pub use macros;
pub use map;
#[cfg(test)]
mod tests {
use map::{TableEntry,MapEntry,Entry};
extern crate self as deimos;
#[test]
fn simple() {
static MAP: &[Entry<deimos::map::MapEntry<&'static str,fn()>>] = &deimos::macros::map! {
"hello" => || println!("hello there"),
"hi" => || println!("hi friend"),
"greetings" => || println!("salutations"),
};
}
}