message: Refactor test generate_works
diff: @@ -52,8 +52,15 @@ mod test {
  #[test]
  fn generate_works() {
  - let wasm = vec![12u8; 17];
  - let id = Checksum::generate(&wasm);
  - assert_eq!(id.0.len(), 32);
  + let wasm = vec![0x68, 0x69, 0x6a];
  + let checksum = Checksum::generate(&wasm);
  +
  + // echo -n "hij" | sha256sum
  + let expected = [
  + 0x72, 0x2c, 0x8c, 0x99, 0x3f, 0xd7, 0x5a, 0x76, 0x27, 0xd6, 0x9e, 0xd9, 0x41, 0x34,
  + 0x4f, 0xe2, 0xa1, 0x42, 0x3a, 0x3e, 0x75, 0xef, 0xd3, 0xe6, 0x77, 0x8a, 0x14, 0x28,
  + 0x84, 0x22, 0x71, 0x04,
  + ];
  + assert_eq!(checksum.0, expected);
  }
  }
  