mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 03:58:06 +00:00
15 lines
322 B
Go
15 lines
322 B
Go
|
package smartcontract
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func TestCallFlag_Has(t *testing.T) {
|
||
|
require.True(t, AllowCall.Has(AllowCall))
|
||
|
require.True(t, (AllowCall | AllowNotify).Has(AllowCall))
|
||
|
require.False(t, (AllowCall).Has(AllowCall|AllowNotify))
|
||
|
require.True(t, All.Has(ReadOnly))
|
||
|
}
|