diff options
author | edef <edef@edef.eu> | 2023-10-03T08·05+0000 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-10-03T08·09+0000 |
commit | e014c3ef7076262590ea0a801500978044de3106 (patch) | |
tree | 10a978470e60db585459da2c5fbde9a8e168a2be /tvix/nix-compat | |
parent | cfb810d81a4f5ba60e8d3c5502390d60799aa636 (diff) |
fix(tvix/nix-compat): bits are not bytes r/6688
Change-Id: Ib5744ea240895fe84454ad271ee5640b29cab838 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9505 Autosubmit: edef <edef@edef.eu> Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/nix-compat')
-rw-r--r-- | tvix/nix-compat/src/nixbase32.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/nix-compat/src/nixbase32.rs b/tvix/nix-compat/src/nixbase32.rs index 3d1c276c63bb..7fef1d673e2f 100644 --- a/tvix/nix-compat/src/nixbase32.rs +++ b/tvix/nix-compat/src/nixbase32.rs @@ -136,8 +136,8 @@ mod tests { 0xb3, 0xa2, 0x4d, 0xe9, 0x7a, 0x8f, 0xdb, 0xc8, 0x35, 0xb9, 0x83, 0x31, 0x69, 0x50, 0x10, 0x30, 0xb8, 0x97, 0x70, 0x31, 0xbc, 0xb5, 0x4b, 0x3b, 0x3a, 0xc1, 0x37, 0x40, 0xf8, 0x46, 0xab, 0x30, ]); "sha256")] - // this is invalid encoding, because it encodes 10 1-bytes, so the carry - // would be 2 1-bytes + // this is invalid encoding, because it encodes 10 1-bits, so the carry + // would be 2 1-bits #[test_case("zz", None; "invalid encoding-1")] // this is an even more specific example - it'd decode as 00000000 11 #[test_case("c0", None; "invalid encoding-2")] |