package host import "testing" func TestSchedulingFromPrioritySeparation(t *testing.T) { cases := map[uint32]string{ 0x26: SchedulingPrograms, // Programs, as the dialog writes it 0x02: SchedulingPrograms, // a fresh client install 0x18: SchedulingBackground, // Background services 0x00: SchedulingBackground, } for v, want := range cases { if got := SchedulingFromPrioritySeparation(v); got != want { t.Errorf("0x%02x: %q, want %q", v, got, want) } } }