practicalli / practicalli/clojure

Spec numbers as dates and strings

Open
#126 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

spec
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.