We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2271b70 commit 15ad418Copy full SHA for 15ad418
src/lib.rs
@@ -264,6 +264,17 @@ mod tests {
264
assert_eq!(expected, output);
265
}
266
267
+ #[cfg(feature = "portable")]
268
+ #[test]
269
+ fn test_portable_hashing() {
270
+ let input: Vec<u8> = b"hello world".as_ref().into();
271
+
272
+ let output = hash(input.as_ref());
273
+ let expected_hex = "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9";
274
+ let expected: Vec<u8> = expected_hex.from_hex().unwrap();
275
+ assert_eq!(expected, output);
276
+ }
277
278
#[cfg(feature = "zero_hash_cache")]
279
mod zero_hash {
280
use super::*;
0 commit comments