day 18 bad attempt

This commit is contained in:
RussellChamp committed 2021-12-29 21:54:04 -05:00
1 parent 586e137f05
commit 0b5bf004f7
4 files changed
+386 -1

No files matched your search

+7
View File
@@ -9,6 +9,13 @@ func IsTrue(t *testing.T, expr bool, message string) {
}
}
func IsFalse(t *testing.T, expr bool, message string) {
if expr == true {
t.Logf("Expected false but got true: %s", message)
t.Fail()
}
}
func EqualsStr(t *testing.T, actual, expected, message string) {
if actual != expected {
t.Logf("Expected value '%s' but got '%s': %s", expected, actual, message)