Tests[SearchMessageFTSSimple]

This commit is contained in:
2022-12-11 02:47:23 +01:00
parent 3692b915f3
commit 26cd1533b4
9 changed files with 59 additions and 20 deletions

View File

@@ -56,6 +56,14 @@ func AssertEqual(t *testing.T, key string, expected any, actual any) {
}
}
func AssertTrue(t *testing.T, key string, v bool) {
if !v {
t.Errorf("AssertTrue(%s) failed", key)
t.Error(string(debug.Stack()))
t.FailNow()
}
}
func AssertNotEqual(t *testing.T, key string, expected any, actual any) {
if expected == actual {
t.Errorf("Value [%s] does not differ (%T <-> %T):\n", key, expected, actual)