Skip to content

Commit

Permalink
a test for c07528e
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Sep 20, 2024
1 parent 9813d17 commit b870a78
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,15 @@ func BenchmarkIDCheck(b *testing.B) {
}
})
}

func EventKindTest(t *testing.T) {
require.True(t, (&Event{Kind: 1}).IsRegular())
require.True(t, (&Event{Kind: 9}).IsRegular())
require.True(t, (&Event{Kind: 1111}).IsRegular())
require.True(t, (&Event{Kind: 0}).IsReplaceable())
require.True(t, (&Event{Kind: 3}).IsReplaceable())
require.True(t, (&Event{Kind: 10002}).IsReplaceable())
require.True(t, (&Event{Kind: 10050}).IsReplaceable())
require.True(t, (&Event{Kind: 30023}).IsAddressable())
require.True(t, (&Event{Kind: 39000}).IsAddressable())
}

0 comments on commit b870a78

Please sign in to comment.