summaryrefslogtreecommitdiff
path: root/testx/create_test.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-22 18:29:37 +0200
committerewy <ewy0@protonmail.com>2026-04-22 18:29:37 +0200
commit374ed5e1a4dc635c42e33e4133729d40cf3e0e35 (patch)
tree01f12ca3eea0154b61afde3d1ee27df2094644e1 /testx/create_test.go
parentee481fa406bb685a16d8b568fca0c9f592c06180 (diff)
work on tests
also replace the annoying search return with a struct
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"))
+}