func TestClaimsSubject(t *testing.T) {
	assert := audit.NewTestingAssertion(t, true)
	assert.Logf("testing claim \"sub\"")
	subject := "foo"
	claims := jwt.NewClaims()
	sub, ok := claims.Subject()
	assert.False(ok)
	none := claims.SetSubject(subject)
	assert.Equal(none, "")
	sub, ok = claims.Subject()
	assert.Equal(sub, subject)
	assert.True(ok)
	old := claims.DeleteSubject()
	assert.Equal(old, sub)
	_, ok = claims.Subject()
	assert.False(ok)
}
// TestClaimsSubject checks the setting, getting, and
// deleting of the subject claim.
TestClaimsSubject checks the setting, getting, and
deleting of the subject claim.
// TestClaimsSubject checks the setting getting and // deleting of the subject claim .
func TestClaimsSubject(t *testing.T) {
	assert := audit.NewTestingAssertion(t, true)
	assert.Logf("testing claim \"sub\"")
	subject := "foo"
	claims := jwt.NewClaims()
	sub, ok := claims.Subject()
	assert.False(ok)
	none := claims.SetSubject(subject)
	assert.Equal(none, "")
	sub, ok = claims.Subject()
	assert.Equal(sub, subject)
	assert.True(ok)
	old := claims.DeleteSubject()
	assert.Equal(old, sub)
	_, ok = claims.Subject()
	assert.False(ok)
}
func TestClaimsSubject ( t * testing . T ) { assert := audit . NewTestingAssertion ( t , true ) assert . Logf ( " \" \" " ) subject := " " claims := jwt . NewClaims ( ) sub , ok := claims . Subject ( ) assert . False ( ok ) none := claims . SetSubject ( subject ) assert . Equal ( none , " " ) sub , ok = claims . Subject ( ) assert . Equal ( sub , subject ) assert . True ( ok ) old := claims . DeleteSubject ( ) assert . Equal ( old , sub ) _ , ok = claims . Subject ( ) assert . False ( ok ) }
TestClaimsSubject checks the setting, getting, and
deleting of the subject claim.
TestClaimsSubject checks the setting getting and deleting of the subject claim .