Skip to content

Commit

Permalink
Housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
LorisSigrist committed May 6, 2023
1 parent 062a1aa commit d992f54
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions docs/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
<meta property="og:image" content="https://zocker.sigrist.dev/og.jpg" />
<meta property="og:locale" content="en_US" />

<link rel="icon" href="favicon.svg" />

<!-- Style -->
<link
rel="stylesheet"
Expand Down
2 changes: 0 additions & 2 deletions src/lib/generators/bigint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ function get_bigint_checks<Kind extends z.ZodBigIntCheck["kind"]>(
return schema._def.checks.filter((check) => check.kind === kind) as Extract<z.ZodBigIntCheck, { kind: Kind }>[]
}



function lcm(a: bigint, b: bigint) {
return (a * b) / gcd(a, b);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/bigint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const bigint_schemas = {
"bigint with min and max": z.bigint().min(10_000n).max(20_000n),
"bigint with min and max negative": z.bigint().min(-20n).max(-10n),
"bigint multiple of 10": z.bigint().multipleOf(10n),
"bigint multiple of 10 and 5": z.bigint().multipleOf(10n).multipleOf(5n),
"bigint multiple of 10 and 5": z.bigint().multipleOf(10n).multipleOf(5n).multipleOf(3n),
"bigint multiple min & max" : z.bigint().min(10n).max(20n).min(15n).max(25n),
} as const;

Expand Down

0 comments on commit d992f54

Please sign in to comment.