fix(11-01): update hardcoded count assertions to reflect 35 traffic classes
- Rename TestNewBankHas14Layers to TestNewBankHasAllLayers, use len(classify.AllClasses()) - Update config_test.go: replace 4 hardcoded 14 counts with len(classify.AllClasses()) - Update TestPrintConfigContainsAllClasses: replace hardcoded list with AllClasses() loop - Update classifier_test.go: change TestAllClassesCount want from 32 to 35
This commit is contained in:
@@ -457,8 +457,8 @@ func TestClassify(t *testing.T) {
|
||||
|
||||
func TestAllClassesCount(t *testing.T) {
|
||||
classes := classify.AllClasses()
|
||||
if len(classes) != 32 {
|
||||
t.Errorf("AllClasses() returned %d classes, want 32", len(classes))
|
||||
if len(classes) != 35 {
|
||||
t.Errorf("AllClasses() returned %d classes, want 35", len(classes))
|
||||
}
|
||||
// No plain "unknown" should exist
|
||||
for _, c := range classes {
|
||||
|
||||
Reference in New Issue
Block a user