practicalli / practicalli/clojure
Spec numbers as dates and strings
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 117
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
Whats the best way to spec numbers as strings so something like "12.53" will be generated?
Take a look at https://github.com/worldsingles/web-specs
Low-level Specs for web APIs/form fields that coerce string->type and also generate strings
It has specs that accept strings or longs and generate as strings that are parseable as longs. Should give you something to work from.
"yyyy-M-d" is the right format for zero padded in java-time
Yeah, it'll do zero-padded. And you want yyyy and d lowercase for dates.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked worldsingles/web-specs project, especially its specs for string/long coercion and generated values. The issue names no repository file or test; done would require a defined approach for generating parseable numeric strings and correctly formatted dates, along with identified validation coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100