blob: 291f61cdde1e1b7aa215f31731e8389d8298596d [file] [log] [blame] [edit]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package servo
import (
"testing"
"go.chromium.org/infra/cros/servo/errors"
)
func TestErrorChecking(t *testing.T) {
var err error = &TabletModeCmdUnsupportedErr{E: errors.New("Some wrapped error")}
if _, ok := err.(*TabletModeCmdUnsupportedErr); !ok { //nolint
t.Error("Type cast didn't work")
}
}