[JEDI.NET discuss] New additions
Status: Pre-Alpha
Brought to you by:
jedi_mbe
|
From: Marcel B. <mar...@xs...> - 2004-11-24 10:47:04
|
Hi all,
I've just added two new units and assemblies to CVS. One contains
the StringUtils class with static methods to Quote/Dequote strings,
expand tabs (using specified tabs and/or a tab width), repeat a
specified string a number of times, remove duplicate characters (eg.
'This\\Folder' will be converted to 'This\Folder'), retrieve sections of
a string (all before a specific delimiter, all after a delimiter, the
last n characters).
The other unit contains the Path class with static methods to
handle paths strings, like combining an absolute path with a relative
one to get a new absolute path.
With the exception of the tab expansions, all methods where
developed using the test driven development technique. I wrote the test
cases for tab expansions after I wrote the code (and managed to remove
quite a number of bugs that hadn't been apparent in the 'test'
application I had used them in earlier). I've used Nunit 2.2.1 and the
test cases have been added to CVS as well (in the 'main\nunit' folder).
Nunit should be installed if you want to use those and can be found at
http://nunit.sourceforge.net.
I intend on writing test cases for at least all non-visual stuff
(as these are easier to test in code) and I expect test cases for any
donation from now on.
Any comment and/or suggestions welcome (really, I seem to be the
only one posting here!).
BTW, anyone here available to make a (simple) web site for this
project? I would appreciate that.
--
Marcel Bestebroer (Team JEDI) http://delphi-jedi.org
Project JEDI Help coordinator
JEDI.NET team coordinator
|