• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

terminal-nerds / snippets / 5113553229

pending completion
5113553229

Pull #105

github

web-flow
Merge 5e619d6af into e71a93724
Pull Request #105: Major reorganization

267 of 329 branches covered (81.16%)

Branch coverage included in aggregate %.

377 of 377 new or added lines in 13 files covered. (100.0%)

3396 of 3511 relevant lines covered (96.72%)

34.38 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.19
/packages/string/source/char/sub/number.ts
1
import { z } from "zod";
1✔
2

1✔
3
/* prettier-ignore */
1✔
4
export const CHARS_NUMBER = [
1✔
5
        "0",
1✔
6
        "1",
1✔
7
        "2",
1✔
8
        "3",
1✔
9
        "4",
1✔
10
        "5",
1✔
11
        "6",
1✔
12
        "7",
1✔
13
        "8",
1✔
14
        "9",
1✔
15
] as const;
1✔
16

1✔
17
export type CharNumber = (typeof CHARS_NUMBER)[number];
1✔
18

1✔
19
export const SCHEMA_CHAR_NUMBER = z.enum(CHARS_NUMBER);
1✔
20

1✔
21
export function isCharNumber(char: string): char is CharNumber {
1✔
22
        return SCHEMA_CHAR_NUMBER.safeParse(char).success;
×
23
}
×
24

1✔
25
export function validateCharNumber(char: string): asserts char is CharNumber {
1✔
26
        SCHEMA_CHAR_NUMBER.parse(char);
×
27
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc