22 lines
550 B
Go
22 lines
550 B
Go
|
|
package domain
|
||
|
|
|
||
|
|
import (
|
||
|
|
"testing"
|
||
|
|
)
|
||
|
|
|
||
|
|
// TestUserStatusConstantsExtra 测试用户状态常量(额外验证)
|
||
|
|
func TestUserStatusConstantsExtra(t *testing.T) {
|
||
|
|
if UserStatusInactive != 0 {
|
||
|
|
t.Errorf("UserStatusInactive = %d, want 0", UserStatusInactive)
|
||
|
|
}
|
||
|
|
if UserStatusActive != 1 {
|
||
|
|
t.Errorf("UserStatusActive = %d, want 1", UserStatusActive)
|
||
|
|
}
|
||
|
|
if UserStatusLocked != 2 {
|
||
|
|
t.Errorf("UserStatusLocked = %d, want 2", UserStatusLocked)
|
||
|
|
}
|
||
|
|
if UserStatusDisabled != 3 {
|
||
|
|
t.Errorf("UserStatusDisabled = %d, want 3", UserStatusDisabled)
|
||
|
|
}
|
||
|
|
}
|