diff --git a/langext/string_test.go b/langext/string_test.go index 9d6170a..7c92ff6 100644 --- a/langext/string_test.go +++ b/langext/string_test.go @@ -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) + } +}