mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-09 06:47:59 -06:00
21 lines
405 B
Rust
21 lines
405 B
Rust
macro_rules! hashtest {
|
|
($input:tt) => {
|
|
($input, unshell::hash_32!($input))
|
|
};
|
|
}
|
|
|
|
const MAP: [(&str, u32); 6] = [
|
|
hashtest!("abc123"),
|
|
hashtest!("abc124"),
|
|
hashtest!("abc125"),
|
|
hashtest!("abc122"),
|
|
hashtest!("somethingelse"),
|
|
hashtest!("org.io.abc1234"),
|
|
];
|
|
|
|
pub fn main() {
|
|
for (a, b) in MAP {
|
|
println!("unshell::hash_32!(\"{}\") = {}", a, b)
|
|
}
|
|
}
|