Setup testing
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 18 Nov 2020 13:22:16 +0000 (08:22 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 18 Nov 2020 13:22:16 +0000 (08:22 -0500)
Makefile
tt.rkt

index bced2e6..c2d3dd1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,10 @@
 install:
        raco pkg install
 
+.PHONY: test
+test:
+       raco test ./tt.rkt
+
 .PHONY: remove
 remove:
        raco pkg remove tt
diff --git a/tt.rkt b/tt.rkt
index b11364f..c606b2e 100644 (file)
--- a/tt.rkt
+++ b/tt.rkt
@@ -43,6 +43,9 @@
 (require http-client)
 (require rfc3339-old)
 
+(module+ test
+  (require rackunit))
+
 (struct msg  (ts_epoch ts_rfc3339 nick uri text))
 (struct feed (nick uri))
 
This page took 0.031923 seconds and 4 git commands to generate.