add unit testing

This commit is contained in:
RussellChamp committed 2021-12-01 15:31:51 -05:00
1 parent 2992d3ba43
commit 92dd557177
6 files changed
+76 -19

No files matched your search

+6 -3
View File
@@ -1,8 +1,11 @@
default: 1
default: build day=1
# This is my 2021 Advent of Code project
init:
mkdir day-$(day); sed 's/#DAY#/$(day)/g' main.go.template | sed 's/#TITLE#/$(title)/g' > day-$(day)/main.go; touch day-$(day)/input.txt
0 1:
cd day-$@; go run .
build:
cd day-$(day); go run .
test:
cd day-$(day); go test