[Issue 3786] bug in std.string.removechars

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 10 23:27:14 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3786



--- Comment #3 from Igor Lesik <curoles at yahoo.com> 2010-02-10 23:27:13 PST ---
>test3.exe
core.exception.AssertError@(22): Assertion failure

16    string r;
17
18    r = MYremovechars("hah", "h");
19    assert(r == "a");
20
21    r = removechars("hah", "h");
22    assert(r == "a");

I hope it proves my point.

The problem with existing unittest for removechars is that
in ALL cases characters to be removed go back-to-back (this is
why removechars passes existing unittest).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list