mirror of https://github.com/pikami/tiktok-dl.git
16 lines
494 B
Go
16 lines
494 B
Go
package unittestutil
|
|
|
|
// AssertString - Check if two strings match
|
|
func (tu *TestUtil) AssertString(actual string, expected string, name string) {
|
|
if actual != expected {
|
|
tu.T.Errorf("%s is incorrect: Expected '%s', but got '%s'", name, expected, actual)
|
|
}
|
|
}
|
|
|
|
// AssertInt - Check if two intagers match
|
|
func (tu *TestUtil) AssertInt(actual int, expected int, name string) {
|
|
if actual != expected {
|
|
tu.T.Errorf("%s is incorrect: Expected '%d', but got '%d'", name, expected, actual)
|
|
}
|
|
}
|