summaryrefslogtreecommitdiff
path: root/testx/create_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'testx/create_test.go')
-rw-r--r--testx/create_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/testx/create_test.go b/testx/create_test.go
index c9f2925..d0e3099 100644
--- a/testx/create_test.go
+++ b/testx/create_test.go
@@ -3,6 +3,7 @@
package testx
import (
+ "github.com/stretchr/testify/assert"
"testing"
)
@@ -25,3 +26,9 @@ func TestAssertTargetIs_Wrong(t *testing.T) {
ta := TTarget("aaaa")
AssertTargetIsNot(t, "bbbbbb", ta)
}
+
+func TestTTargetIdentity(t *testing.T) {
+ ta := TTarget("asdf.hidden.sh")
+ assert.True(t, ta.Matches("asdf"))
+ assert.False(t, ta.Matches("hidden"))
+}