You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
363 B
Go
19 lines
363 B
Go
2 years ago
|
package icserror
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestGetModName(t *testing.T) {
|
||
|
got := GetModName()
|
||
|
assert.Equal(t, "icserror", got, "not expected value")
|
||
|
|
||
|
g1 := NewIcsError("Test", 0)
|
||
|
g2 := NewIcsError("Test", 0)
|
||
|
assert.Equal(t, g1, g2, "not expected value")
|
||
|
|
||
|
assert.Equal(t, g1.Equal(g2), true, "not expected value")
|
||
|
}
|