mirror of
https://github.com/RussellChamp/advent-of-code-2021.git
synced 2026-10-27 21:52:32 +00:00
day 18 bad attempt
This commit is contained in:
1 parent
586e137f05
commit
0b5bf004f7
4 files changed
+386
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user