mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-29 07:11:58 +02:00
kind checking moved to top-level functions on kinds.go
This commit is contained in:
19
kinds_test.go
Normal file
19
kinds_test.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package nostr
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func KindKindTest(t *testing.T) {
|
||||
require.True(t, IsRegularKind(1))
|
||||
require.True(t, IsRegularKind(9))
|
||||
require.True(t, IsRegularKind(1111))
|
||||
require.True(t, IsReplaceableKind(0))
|
||||
require.True(t, IsReplaceableKind(3))
|
||||
require.True(t, IsReplaceableKind(10002))
|
||||
require.True(t, IsReplaceableKind(10050))
|
||||
require.True(t, IsAddressableKind(30023))
|
||||
require.True(t, IsAddressableKind(39000))
|
||||
}
|
Reference in New Issue
Block a user