adept/util/file_test.go
Gregory Ballantine 6d1a24cefb
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Added some basic unit tests for some of the utility functions
2022-09-01 14:25:02 -04:00

12 lines
258 B
Go

package util
import "testing"
func TestFilenameWithoutExtension(t *testing.T) {
filename := FilenameWithoutExtension("testfile.txt")
if filename != "testfile" {
t.Logf("FilenameWithoutExtension returned '%s'; it should be 'testfile'.", filename)
}
}