✨ Add separator option
This commit is contained in:
parent
84994d3b73
commit
4b509d31bb
6 changed files with 37 additions and 8 deletions
|
|
@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue