Compare commits

..

1 Commits

Author SHA1 Message Date
2054c04442 added test for StrRemoveControlCharacters func
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m39s
2026-03-10 19:58:04 +01:00

View File

@@ -150,3 +150,12 @@ func TestStrWrapBehaviour4(t *testing.T) {
t.Errorf("Expected %v but got %v", expected, result) 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)
}
}