From 374ed5e1a4dc635c42e33e4133729d40cf3e0e35 Mon Sep 17 00:00:00 2001 From: ewy Date: Wed, 22 Apr 2026 18:29:37 +0200 Subject: work on tests also replace the annoying search return with a struct --- testx/create_test.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'testx/create_test.go') 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")) +} -- cgit v1.3.1