Add unit test for constantTimeCompare.

This commit is contained in:
Juliusz Chroboczek
2025-01-22 00:27:14 +01:00
parent e8538bdf3b
commit 377ab0efcf
+2 -1
View File
@@ -13,10 +13,11 @@ import (
func TestConstantTimeCompare(t *testing.T) {
tests := []struct {
a, b string
a, b string
}{
{"", ""},
{"a", "a"},
{"a", "b"},
{"foo", "foo"},
{"foo", "bar"},
{"foo", "foo1"},