MCPcopy Create free account
hub / github.com/RustCrypto/utils / test_try_new

Function test_try_new

block-buffer/tests/mod.rs:216–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214
215#[test]
216fn test_try_new() {
217 assert!(EagerBuffer::<U4>::try_new(&[0; 3]).is_ok());
218 assert!(EagerBuffer::<U4>::try_new(&[0; 4]).is_err());
219 assert!(LazyBuffer::<U4>::try_new(&[0; 4]).is_ok());
220 assert!(LazyBuffer::<U4>::try_new(&[0; 5]).is_err());
221}
222
223#[test]
224fn test_eager_serialize() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected