tests on root and khatru working.

This commit is contained in:
fiatjaf
2025-04-17 20:30:44 -03:00
parent 1c56906506
commit 32efaa7c58
13 changed files with 56 additions and 74 deletions

View File

@@ -94,7 +94,7 @@ func TestIDCheck(t *testing.T) {
require.False(t, evt.CheckID())
evt.Sign(GeneratePrivateKey())
evt.Sign(Generate())
require.True(t, evt.CheckID())
evt.Content += "!"
@@ -108,7 +108,7 @@ func BenchmarkIDCheck(b *testing.B) {
Content: fmt.Sprintf("hello"),
Tags: Tags{},
}
evt.Sign(GeneratePrivateKey())
evt.Sign(Generate())
b.Run("naïve", func(b *testing.B) {
for b.Loop() {