Add separator option

This commit is contained in:
Dan Jones 2025-03-11 16:42:39 -05:00
commit 4b509d31bb
6 changed files with 37 additions and 8 deletions

View file

@ -20,6 +20,7 @@ func TestMake(t *testing.T) {
{"with original", []Option{WithOriginal("file")}, "abc_file.txt"},
{"without ext", []Option{WithoutExtension()}, "abc"},
{"with ext", []Option{WithExtension("xml")}, "abc.xml"},
{"with sep", []Option{WithOriginal("file"), WithSeparator("---")}, "abc---file.txt"},
{
"with all",
[]Option{
@ -27,8 +28,9 @@ func TestMake(t *testing.T) {
WithOriginal("file"),
WithSuffix("suff"),
WithExtension("svg"),
WithSeparator("+"),
},
"pre_abc_file_suff.svg",
"pre+abc+file+suff.svg",
},
}