Skip to content

Instantly share code, notes, and snippets.

@tonetheman
Created December 3, 2019 04:18
Show Gist options
  • Save tonetheman/de2030b24eff5eaf91ea1eb089c5f453 to your computer and use it in GitHub Desktop.
Save tonetheman/de2030b24eff5eaf91ea1eb089c5f453 to your computer and use it in GitHub Desktop.
working unit test setup
#lang racket
(define a 10)
(module+ test
(require rackunit)
(check-equal? a 10 "making sure a is working")
)
(define b 20)
(module+ test
(check-equal? b 20 "making sure b is 20")
)
(module+ main
(println "main is running")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment