Add temporary hash function.

This commit is contained in:
Michael Mikovsky
2026-05-29 11:38:14 -06:00
parent fc82f4f921
commit ca1daedebe
4 changed files with 86 additions and 2 deletions
+22
View File
@@ -0,0 +1,22 @@
use unshell::hash;
macro_rules! hashtest {
($input:tt) => {
($input, hash($input))
};
}
const MAP: [(&'static 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(\"{}\") = {}", a, b)
}
}