func TestClaimsAudience(t *testing.T) {
	assert := audit.NewTestingAssertion(t, true)
	assert.Logf("testing claim \"aud\"")
	audience := []string{"foo", "bar", "baz"}
	claims := jwt.NewClaims()
	aud, ok := claims.Audience()
	assert.False(ok)
	none := claims.SetAudience(audience...)
	assert.Length(none, 0)
	aud, ok = claims.Audience()
	assert.Equal(aud, audience)
	assert.True(ok)
	old := claims.DeleteAudience()
	assert.Equal(old, aud)
	_, ok = claims.Audience()
	assert.False(ok)
}
// TestClaimsAudience checks the setting, getting, and
// deleting of the audience claim.
TestClaimsAudience checks the setting, getting, and
deleting of the audience claim.
// TestClaimsAudience checks the setting getting and // deleting of the audience claim .
func TestClaimsAudience(t *testing.T) {
	assert := audit.NewTestingAssertion(t, true)
	assert.Logf("testing claim \"aud\"")
	audience := []string{"foo", "bar", "baz"}
	claims := jwt.NewClaims()
	aud, ok := claims.Audience()
	assert.False(ok)
	none := claims.SetAudience(audience...)
	assert.Length(none, 0)
	aud, ok = claims.Audience()
	assert.Equal(aud, audience)
	assert.True(ok)
	old := claims.DeleteAudience()
	assert.Equal(old, aud)
	_, ok = claims.Audience()
	assert.False(ok)
}
func TestClaimsAudience ( t * testing . T ) { assert := audit . NewTestingAssertion ( t , true ) assert . Logf ( " \" \" " ) audience := [ ] string { " " , " " , " " } claims := jwt . NewClaims ( ) aud , ok := claims . Audience ( ) assert . False ( ok ) none := claims . SetAudience ( audience ... ) assert . Length ( none , 0 ) aud , ok = claims . Audience ( ) assert . Equal ( aud , audience ) assert . True ( ok ) old := claims . DeleteAudience ( ) assert . Equal ( old , aud ) _ , ok = claims . Audience ( ) assert . False ( ok ) }
TestClaimsAudience checks the setting, getting, and
deleting of the audience claim.
TestClaimsAudience checks the setting getting and deleting of the audience claim .