https://github.com/bobbicodes/4clojure-spec
Rebooting 4clojure with generative testing
https://github.com/bobbicodes/4clojure-spec
Last synced: about 1 year ago
JSON representation
Rebooting 4clojure with generative testing
- Host: GitHub
- URL: https://github.com/bobbicodes/4clojure-spec
- Owner: bobbicodes
- Created: 2021-07-06T20:38:31.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-18T06:07:13.000Z (almost 5 years ago)
- Last Synced: 2025-01-31T06:44:35.792Z (over 1 year ago)
- Language: Clojure
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 4clojure-spec
Rebooting 4clojure with generative testing
## Rationale
4clojure's teaching style is centered around unit (example-based) testing.
This is good, because:
* It prepares the student for test-driven design
This is bad, because:
* It prepares the student for test-driven design
What if we kept the same problems and learning path, but instead of presenting the user with a list of examples with blanks to fill in, show them a spec and be challenged to write a function which satisfies the spec.
What I'm talking about is rewriting the unit tests as specs. I guess I'll get started.