forked from starnakin/IronGOLEM
10 lines
288 B
Plaintext
10 lines
288 B
Plaintext
main()
|
|
{
|
|
name = "replace";
|
|
|
|
test_str(replace("yo ca va ?", "t", 2, 3), "yotca va ?", "");
|
|
test_str(replace("yo ca va ?", "", 2, 3), "yoca va ?", "empty fill");
|
|
test_str(replace("yo ca va ?", "aaaaa", 2, 3), "yoaaaaaca va ?", "");
|
|
test_str(replace("", "aaaaa", 0, 0), "aaaaa", "");
|
|
}
|