mirror of
https://github.com/pikami/tiktok-dl.git
synced 2024-11-29 11:15:42 +00:00
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)
|
||
|
}
|
||
|
}
|