added test for StrRemoveControlCharacters func
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m39s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m39s
This commit is contained in:
@@ -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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user