Files
2026-07-13 12:32:14 +08:00

23 lines
571 B
Go

package transform
import "testing"
func TestTransform_ErrNotImplemented(t *testing.T) {
err := &ErrNotImplemented{"n", "a"}
expected := "function N is not implemented for attribute a"
actual := err.Error()
if expected != actual {
t.Fatalf("\nExpected: %s\n Got: %s", expected, actual)
}
}
func TestTransform_ErrUnsupportedFormat(t *testing.T) {
err := &ErrUnsupportedFormat{"f", "a"}
expected := "unsupported format type f for attribute a"
actual := err.Error()
if expected != actual {
t.Fatalf("\nExpected: %s\n Got: %s", expected, actual)
}
}