02810ffa94
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
19 lines
299 B
Go
19 lines
299 B
Go
package fs
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestBase(t *testing.T) {
|
|
result := Base("/testdata/test.jpg")
|
|
|
|
assert.Equal(t, "test", result)
|
|
}
|
|
|
|
func TestBaseAbs(t *testing.T) {
|
|
result := AbsBase("/testdata/test.jpg")
|
|
|
|
assert.Equal(t, "/testdata/test", result)
|
|
}
|