Exercism exercises in Racket.
Please see the contributing guide. We welcome both improvements to the existing exercises and the addition of new exercises.
The Racket code in this repo is meant to conform with the conventions set forth in How to Program Racket.
Try to avoid external dependencies.
For support with Racket in Exercism, please visit the Racket subcategory on the official Exercism forum.
Pull requests should be focused on a single exercise, issue, or conceptually cohesive change. Please refer to Exercism's pull request guidelines. If you plan to make significant or breaking changes, please open an issue so we can discuss it first.
Prior to submitting a pull request, ensure that your test requires the stub file, and not the example file - like so:
#lang racket/base
(require "perfect-numbers.rkt")
(module+ test
(require rackunit rackunit/text-ui)
(define suite
(test-suite
"perfect numbers tests"
(test-equal? "no perfect numbers in 1 - 5"
(perfect-numbers 5)
'())))
(run-tests suite))
The Racket logo was created by Matthew Butterick and released under the Creative Commons Attribution-Share Alike 3.0 Unported license. We have adapted it, changing the colour scheme for use on Exercism.