Skip to content

Commit 8f487d8

Browse files
authored
🐛 Stop unwrapping ulid we cannot build (#4094)
* 🐛 Stop unwrapping `ulid` we cannot build Being able to unwrap and deconstruct data that could never be created by one arbitrary can lead to wrong shrinker from being selected and thus strange issues (edge cases but let's avoid them). * versions
1 parent cf607e0 commit 8f487d8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.yarn/versions/c8458015.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
releases:
2+
fast-check: patch
3+
4+
declined:
5+
- "@fast-check/ava"
6+
- "@fast-check/jest"
7+
- "@fast-check/vitest"
8+
- "@fast-check/worker"

packages/fast-check/src/arbitrary/_internals/mappers/UintToBase32String.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function uintToBase32StringUnmapper(value: unknown): number {
114114
let accumulated = 0;
115115
let power = 1;
116116
for (let index = value.length - 1; index >= 0; --index) {
117-
const char = value[index].toUpperCase();
117+
const char = value[index];
118118
const numericForChar = decodeSymbolLookupTable[char];
119119
if (numericForChar === undefined) {
120120
throw new Error('Unsupported type');

0 commit comments

Comments
 (0)