fix(ci): update numeric decoder validation
This commit is contained in:
2 files changed
+1
-2
No files matched your search
Generated
-1
@@ -4537,7 +4537,6 @@ dependencies = [
|
|||||||
"borsh",
|
"borsh",
|
||||||
"bytes",
|
"bytes",
|
||||||
"num-traits",
|
"num-traits",
|
||||||
"postgres-types",
|
|
||||||
"rand 0.8.7",
|
"rand 0.8.7",
|
||||||
"rkyv",
|
"rkyv",
|
||||||
"serde",
|
"serde",
|
||||||
|
|||||||
@@ -8270,7 +8270,7 @@ mod tests {
|
|||||||
assert_eq!(tiny.len(), 309);
|
assert_eq!(tiny.len(), 309);
|
||||||
|
|
||||||
let mut huge_digits = vec![9];
|
let mut huge_digits = vec![9];
|
||||||
huge_digits.extend(std::iter::repeat(9999).take(77));
|
huge_digits.extend(std::iter::repeat_n(9999, 77));
|
||||||
let huge = "9".repeat(309);
|
let huge = "9".repeat(309);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
decode_pg_numeric_bytes(&postgres_numeric_binary(77, 0x0000, 0, &huge_digits)).as_deref(),
|
decode_pg_numeric_bytes(&postgres_numeric_binary(77, 0x0000, 0, &huge_digits)).as_deref(),
|
||||||
|
|||||||
Reference in new issue
Block a user