github.com/leanovate/gopter@v0.2.9/prop_arg_test.go (about)

     1  package gopter_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/leanovate/gopter"
     7  )
     8  
     9  func TestPropArg(t *testing.T) {
    10  	gen := constGen("nothing").WithLabel("Label1").WithLabel("Label2")
    11  	prop := gopter.NewPropArg(gen(gopter.DefaultGenParameters()), 1, "nothing", "nothing", "nothing", "nothing")
    12  
    13  	if prop.Label != "Label1, Label2" {
    14  		t.Errorf("Invalid prop.Label: %#v", prop.Label)
    15  	}
    16  	if prop.String() != "nothing" {
    17  		t.Errorf("Invalid prop.Stirng(): %#v", prop.String())
    18  	}
    19  }