fixed arg validation

This commit is contained in:
Gani Georgiev
2026-07-15 11:51:15 +03:00
parent c388ade7f0
commit 3c880378c9
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -28,6 +28,16 @@ func TestNewExcerptModifier(t *testing.T) {
[]string{"something"}, // should fallback to 0 which is not allowed
true,
},
{
"negative max argument",
[]string{"-1"},
true,
},
{
"zero max argument",
[]string{"0"},
true,
},
{
"numeric max argument",
[]string{"12"},