Small tweaks
This commit is contained in:
parent
d037e22164
commit
f3922ff84d
7 changed files with 182 additions and 23 deletions
11
src/lib.rs
11
src/lib.rs
|
|
@ -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"),
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue