The Wiert Corner – Recently, I was at a client where in a project strings had to be split from: ‘FI-150 1U; FI-049-I L=20 MM;LET OP LASVORM’ Into: ‘FI-150 1U’ ‘FI-049-I L=20 MM’ ‘LET OP LASVORM’ At first sight, this looks simple: Semicolon Separated Values and you are done. Not so fast Mr Smart Alec: watch the optional spaces! The best thing for problems like these is to start with an empty implementation that some units tests covering it. I use DUnit for Delphi unit testing. Unit testing should go with code coverage, but there are few Delphi code coverage ...
Visits by Source
Users who voted for this posting