Files

21 lines
405 B
Rust
Raw Permalink Normal View History

2026-05-29 11:38:14 -06:00
macro_rules! hashtest {
($input:tt) => {
2026-05-31 13:22:02 -06:00
($input, unshell::hash_32!($input))
2026-05-29 11:38:14 -06:00
};
}
2026-05-31 08:58:08 -06:00
const MAP: [(&str, u32); 6] = [
2026-05-29 11:38:14 -06:00
hashtest!("abc123"),
hashtest!("abc124"),
hashtest!("abc125"),
hashtest!("abc122"),
hashtest!("somethingelse"),
hashtest!("org.io.abc1234"),
];
pub fn main() {
for (a, b) in MAP {
2026-05-31 13:22:02 -06:00
println!("unshell::hash_32!(\"{}\") = {}", a, b)
2026-05-29 11:38:14 -06:00
}
}