compatibility_test.go
raw| 1 | package centrifuge |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
| 6 | "github.com/stretchr/testify/require" |
| 7 | ) |
| 8 | |
| 9 | func TestCompatibilityFlagExists(t *testing.T) { |
| 10 | flags := UseSeqGen |
| 11 | require.True(t, hasFlag(flags, UseSeqGen)) |
| 12 | } |
| 13 | |
| 14 | func TestCompatibilityFlagNotExists(t *testing.T) { |
| 15 | var flags uint64 |
| 16 | require.False(t, hasFlag(flags, UseSeqGen)) |
| 17 | } |