mirror of
https://github.com/RussellChamp/advent-of-code-2021.git
synced 2026-10-27 21:52:32 +00:00
add day 2 results
This commit is contained in:
1 parent
92dd557177
commit
73933e8e39
5 files changed
+145
-2
No files matched your search
@@ -2,6 +2,13 @@ package assert
|
||||
|
||||
import "testing"
|
||||
|
||||
func IsTrue(t *testing.T, expr bool, message string) {
|
||||
if expr != true {
|
||||
t.Logf("Expected true but got false: %s", message)
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
||||
func StrEquals(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