Skip to content

Commit

Permalink
test: add unit test for new restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner committed Sep 26, 2024
1 parent 58a39d5 commit 7babca7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions go/ops_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ func TestInnerOpCheckAgainstSpec(t *testing.T) {
},
errors.New("spec.InnerSpec.ChildSize must be >= 1"),
},
{
"failure: MaxPrefixLength >= MinPrefixLength + ChildSize",
func() {
spec.InnerSpec.MaxPrefixLength = spec.InnerSpec.MinPrefixLength + spec.InnerSpec.ChildSize
},
errors.New("spec.InnerSpec.MaxPrefixLength must be < spec.InnerSpec.MinPrefixLength + spec.InnerSpec.ChildSize"),
},
{
"failure: inner op suffix malformed",
func() {
Expand Down

0 comments on commit 7babca7

Please sign in to comment.