https://github.com/exercism/clojure-representer
https://github.com/exercism/clojure-representer
community-contributions-paused exercism-representer exercism-tooling maintained
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/exercism/clojure-representer
- Owner: exercism
- License: agpl-3.0
- Created: 2020-03-31T10:51:22.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-01T10:33:05.000Z (about 1 year ago)
- Last Synced: 2025-04-29T07:22:26.557Z (8 months ago)
- Topics: community-contributions-paused, exercism-representer, exercism-tooling, maintained
- Language: Clojure
- Size: 45.5 MB
- Stars: 1
- Watchers: 12
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# clojure-representer
## Running a solution
The Clojure representer runs using [babashka](https://github.com/babashka/babashka).
To generate a normalized representation of a solution:
``` sh
./bin/run.sh
# Example:
./bin/run.sh "armstrong-numbers" "resources/armstrong_numbers/0/" "resources/armstrong_numbers/0/"
```
`representation.txt` will be created in `out-dir` along with `mapping.json` containing the placeholder names.
## Running a solution in Docker
``` sh
./bin/run-in-docker.sh
```
## Testing the representer locally
To test 1000 solutions:
``` sh
./bin/run-tests.sh
```
## Testing the representer in Docker
This is run in CI. It builds a container and runs `/bin/run-tests.sh` in it.
``` sh
./bin/run-tests-in-docker.sh
```