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

+10
View File
@@ -0,0 +1,10 @@
package assert
import "testing"
func StrEquals(t *testing.T, actual, expected, message string) {
if actual != expected {
t.Logf("Expected value '%s' but got '%s': %s", expected, actual, message)
t.Fail()
}
}
+11
View File
@@ -0,0 +1,11 @@
package timer
import "testing"
func TestTimer(t *testing.T) {
Start()
Tick()
t.Log("Yup")
}