assertTrue will fail if the value is not true
(t testingT, value bool)
| 10 | |
| 11 | // assertTrue will fail if the value is not true |
| 12 | func assertTrue(t testingT, value bool) { |
| 13 | if !value { |
| 14 | t.Fail() |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | // assertEqual will fail if the two strings are not equal |
| 19 | func assertEqual(t testingT, expected, actual string) { |
searching dependent graphs…