https://github.com/nedap/utils.spec.predicates
Selected, generic predicates that you might find handy when specing things.
https://github.com/nedap/utils.spec.predicates
Last synced: about 1 year ago
JSON representation
Selected, generic predicates that you might find handy when specing things.
- Host: GitHub
- URL: https://github.com/nedap/utils.spec.predicates
- Owner: nedap
- License: epl-2.0
- Created: 2019-07-25T03:05:27.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2023-01-11T08:59:00.000Z (over 3 years ago)
- Last Synced: 2025-03-25T04:07:55.893Z (about 1 year ago)
- Language: Clojure
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: .github/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# utils.spec.predicates
Selected, generic predicates that you might find handy when specing things.
## Installation
```clojure
[com.nedap.staffing-solutions/utils.spec.predicates "1.2.2"]
```
## Documentation
Please browse the public namespaces, which are documented, speced and tested.
Generator-equipped specs are available from the main namespace:
```clojure
(require '[nedap.utils.spec.predicates.predicates :as predicates]
'[clojure.spec.alpha :as spec]
'[clojure.spec.gen.alpha :as gen])
=> nil
(gen/sample (spec/gen ::predicates/pos-integer))
=> (3 1 12 3 1 6 58 4 107 2)
```
## Development
The default namespace is `dev`. Under it, `(refresh)` is available, which should give you a basic "Reloaded workflow".
> It is recommended that you use `(clojure.tools.namespace.repl/refresh :after 'formatting-stack.core/format!)`.
## License
Copyright © Nedap
This program and the accompanying materials are made available under the terms of the [Eclipse Public License 2.0](https://www.eclipse.org/legal/epl-2.0)