Remove ‘Signal’ from structure names
[go-signalcontext.git] / error_test.go
diff --git a/error_test.go b/error_test.go
new file mode 100644 (file)
index 0000000..eb347ef
--- /dev/null
@@ -0,0 +1,13 @@
+package signalcontext
+
+import (
+       "os"
+       "testing"
+
+       "github.com/stretchr/testify/assert"
+)
+
+func TestError(t *testing.T) {
+       assert.EqualError(t, Error{os.Interrupt},
+               "received signal: "+os.Interrupt.String())
+}