Re: [fpc-pascal] order of unit tests
Am Sonntag, den 07.12.2008, 09:20 +0200 schrieb Graeme Geldenhuys: On Sun, Dec 7, 2008 at 1:08 AM, Marc Santhoff [EMAIL PROTECTED] wrote: Since I can save a lot of work depending on this orders I'd like to do so. ;) Could you explain, I don't fully understand your statement. I'd like to assume the order is fixed in this case: Ich have two classes for a special file format. When writing tests I'd like to - have one file in the format as a reference data, if it can be read the sources are okay - test the reader component on the reference file - if the reader is okay, use it to re-read what the writer component writes out That way would avoid duplicating the code actually doing the work of reading those files from the reader component into the unit test. Is there any argument speaking against assuming fixed order behaviour? One of the design guidelines for unit testing is that tests must NEVER rely on the output of other tests. So the order of tests are really irrelevant. Any single tests or test suite must be able to run and pass without first having to run others in a set order. Yes, I agree. But if I do the same reading process in the readers source and in the test case I have two spots having the same code. Fixing errors or making changes at one place only would be nice. How could I solve this problem in a better way? Regards, Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] GTK Pascal and Gnome applets
Op zaterdag 06-12-2008 om 01:08 uur [tijdzone -0500], schreef Andres Linares: Is it possible to write Gnome Applets using GTK on Pascal? Do somebody know about this? Yes, it's possible. I've worked on it a few weeks ago and converted (parts) of the necessary library-bindings. If you're interested, I can send them and a simple example. But there not very stable yet. Joost ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] order of unit tests
On Sun, Dec 07, 2008 at 11:10:19AM +0100, Marc Santhoff wrote: How could I solve this problem in a better way? By using SetUp and TearDown routines. Tom -- E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. Comp. Science PHONE: +31 40 247 41 25| Technische Universiteit Eindhoven FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven http://www.win.tue.nl/~wstomv/ | The Netherlands ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Free Pascal Support for ARM Architecture
On 07 Dec 2008, at 00:30, Prince Riley wrote: A few additional points if I may .. When you say the FP supports the ARM architecture my specific question is how does FP 'inform' the GNU assembler back end of which ARM architecture is intended ... FPC does not specify any particular sub-architecture to the assembler. I guess this means it's just a generic ARMv4 (i.e., ARM7 and above). Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Porting linux to pascal, would it be, possible ?
Graeme Geldenhuys wrote: On Fri, Dec 5, 2008 at 5:55 PM, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: If you want to do some large work to increase the use of FPC I would recommend creating a Window Manager instead, probably with fpgui. How far did you guys get with the 'fpwm' project? Did it actually run at some point. I see the last code changes was 2 years ago. I just checked out fpwm and updated it and fpgui locally so it can compile. It does almost nothing atm but can reparent and close windows :) not alot. I was thinking I might write a widget for resizing and moving windows. Currently the window title bar is a Label and a Button that has an X for it's text and stdimg.quit as the image. I might work on it some in the coming week if I can find the time. Regards, Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Free Pascal Support for ARM Architecture
Jonas Thank you for that reply. OK.. well if that opinion is just a guess, then as this is really a question that has to be answered by actually looking at the FP code and finding out what it sets as the ARM specific GNU AS command line options. Prince On Sun, Dec 7, 2008 at 3:11 PM, Jonas Maebe [EMAIL PROTECTED]wrote: On 07 Dec 2008, at 00:30, Prince Riley wrote: A few additional points if I may .. When you say the FP supports the ARM architecture my specific question is how does FP 'inform' the GNU assembler back end of which ARM architecture is intended ... FPC does not specify any particular sub-architecture to the assembler. I guess this means it's just a generic ARMv4 (i.e., ARM7 and above). Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
RE: [fpc-pascal] GTK Pascal and Gnome applets
Yes, can you send it? thanks a lot. Andres Subject: Re: [fpc-pascal] GTK Pascal and Gnome applets From: [EMAIL PROTECTED] To: fpc-pascal@lists.freepascal.org Date: Sun, 7 Dec 2008 13:09:57 +0100 Op zaterdag 06-12-2008 om 01:08 uur [tijdzone -0500], schreef Andres Linares: Is it possible to write Gnome Applets using GTK on Pascal? Do somebody know about this? Yes, it's possible. I've worked on it a few weeks ago and converted (parts) of the necessary library-bindings. If you're interested, I can send them and a simple example. But there not very stable yet. Joost ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal _ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Free Pascal Support for ARM Architecture
On 07 Dec 2008, at 23:01, Prince Riley wrote: On Sun, Dec 7, 2008 at 3:11 PM, Jonas Maebe [EMAIL PROTECTED]wrote: On 07 Dec 2008, at 00:30, Prince Riley wrote: A few additional points if I may .. When you say the FP supports the ARM architecture my specific question is how does FP 'inform' the GNU assembler back end of which ARM architecture is intended ... FPC does not specify any particular sub-architecture to the assembler. I guess this means it's just a generic ARMv4 (i.e., ARM7 and above). OK.. well if that opinion is just a guess, then as this is really a question that has to be answered by actually looking at the FP code and finding out what it sets as the ARM specific GNU AS command line options. FPC does not specify any particular sub-architecture to the assembler. was not an opinion or a guess, but a fact. What sub- architecture the GNU assembler picks in that case (i.e., by default) was the guess. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Free Pascal Support for ARM Architecture
My point is saying 'guess' was not to discredit your statement about what the FP compiler does, rather to say that no one seems to know exactly what ARM option FP sends to the GNU Assembler and what that option value actually is. Reading the GNU as manual, the arch parameter value needs to be set to one of several values. It can also specify generic ARM architecture, but that choice in addition to being imprecise, could result in code that either is not optimized for the target ARM processor, or fail to execute as expected. Thank you for your reply. Prince On Sun, Dec 7, 2008 at 4:53 PM, Jonas Maebe [EMAIL PROTECTED]wrote: On 07 Dec 2008, at 23:01, Prince Riley wrote: On Sun, Dec 7, 2008 at 3:11 PM, Jonas Maebe [EMAIL PROTECTED] wrote: On 07 Dec 2008, at 00:30, Prince Riley wrote: A few additional points if I may .. When you say the FP supports the ARM architecture my specific question is how does FP 'inform' the GNU assembler back end of which ARM architecture is intended ... FPC does not specify any particular sub-architecture to the assembler. I guess this means it's just a generic ARMv4 (i.e., ARM7 and above). OK.. well if that opinion is just a guess, then as this is really a question that has to be answered by actually looking at the FP code and finding out what it sets as the ARM specific GNU AS command line options. FPC does not specify any particular sub-architecture to the assembler. was not an opinion or a guess, but a fact. What sub-architecture the GNU assembler picks in that case (i.e., by default) was the guess. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Object Pascal operating system
Some proof of the concept: ClassiOS (http://www.petros-project.com/index.php/products/classios.html) was written in Delphi. Not an open source project, but it shows it can be done. Christo NOTICE: Please note that this eMail, and the contents thereof, is subject to the standard Sasol eMail legal notice which may be found at: http://www.sasol.com/legalnotices If you cannot access the legal notice through the URL attached and you wish to receive a copy thereof please send an eMail to [EMAIL PROTECTED] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] order of unit tests
On Sun, Dec 7, 2008 at 12:10 PM, Marc Santhoff [EMAIL PROTECTED] wrote: Yes, I agree. But if I do the same reading process in the readers source and in the test case I have two spots having the same code. Fixing errors or making changes at one place only would be nice. How could I solve this problem in a better way? By using Setup() or TearDown(). You can also use class inheritance. Create TTestCase descendants implementing your readers source. Then create your actual test cases, using that new class, instead of TTestCase directly. eg: TTestCase | TMyBaseReaderTestClass -- will contain your reader code | TReaderTestCase -- will contain your actual tests or TReaderTestCase = class(TTestCase) public procedure Setup; --- reader setup code here procedure TearDown; published procedure TestOne; procedure TestTwo; end; Setup() and TearDown() will be called automatically before and after each test. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal