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 be4cf9f commit cb39589Copy full SHA for cb39589
crates/value/src/base32.rs
@@ -150,5 +150,12 @@ mod tests {
150
// Check that decoding never panics on invalid input.
151
let _ = decode(&s);
152
}
153
+
154
+ #[test]
155
+ fn proptest_base32_order_preserving(left in any::<Vec<u8>>(), right in any::<Vec<u8>>()) {
156
+ let left_encoded = encode(&left);
157
+ let right_encoded = encode(&right);
158
+ assert_eq!(left.cmp(&right), left_encoded.cmp(&right_encoded));
159
+ }
160
161
0 commit comments