On 10.08.2010 00:29, simendsjo wrote:
Replacing with "" / null is missing.
I first looked at the function and modified it. Quickly noticed that a
few unit tests were missing:
assert(replace("foo", "foo", "") == "");
assert(replace("foo", "foo", null) == "");
I refactored replace to understand
Replacing with "" / null is missing.
I first looked at the function and modified it. Quickly noticed that a
few unit tests were missing:
assert(replace("foo", "foo", "") == "");
assert(replace("foo", "foo", null) == "");