Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
fix: string examples made slightly more interesting
Browse files Browse the repository at this point in the history
  • Loading branch information
holvonixAdvay committed Aug 8, 2019
1 parent 7dde71b commit 4213c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function fuzzInt(_: FuzzContext, n: number): t.TypeOf<typeof t.Int> {
}

export function fuzzString(_: FuzzContext, n: number): string {
return `${n}`;
return (Math.abs(n) / Math.PI).toString(36);
}

export function fuzzNull(): null {
Expand Down

0 comments on commit 4213c0e

Please sign in to comment.