added test for StrRemoveControlCharacters func
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m39s

This commit is contained in:
2026-03-10 19:58:04 +01:00
parent 373d28d405
commit 2054c04442

View File

@@ -150,3 +150,12 @@ func TestStrWrapBehaviour4(t *testing.T) {
t.Errorf("Expected %v but got %v", expected, result)
}
}
func TestStrRemoveControlCharacters(t *testing.T) {
str := "\rHel\alo\nWorld\t"
expected := "HelloWorld"
result := StrRemoveControlCharacters(str)
if result != expected {
t.Errorf("Expected %v but got %v", expected, result)
}
}