Buck,
If back in the day when it mattered, people only would have learned how to
write their own command definitions... ah but I digress.

I like the idea of a CL script to do component or unit testing.
One this I see that many RPG programmers do is they get their programs to
run under one specific condition, but through an oddity in there and BOOM!
We're all guilty of this at one time or another, but I cannot believe the
huge majority of RPG programs who test for only one, two or three scenarios.


-Bob


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Buck Calabro
Sent: Monday, December 06, 2004 7:53 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Testing from the command line (was: Use of %DEC with
unformattedcharacter numerics)

> And Jon, I cannot remember why or when the standard
> of character was chosen (which not truly a standard but
> a typical situation in our shop) but it is something I have
> to deal with and it probably relates to unit testing
> from the command line (it's easiest to call a program
> using characters than packed or zoned numbers).

As an aside, unit testing from the command line implies ad-hoc
processes.  I always test using a test jig, typically written in CL.
The advantages there are that I can put all my test cases in one place
and fire them all when I make a program change.  By running all my
test cases every time, I'm more likely to catch inadvertent problems
than when I make a change and test _for_that_change_alone_.

I realise you probably didn't want to hear this but on a public list
it's often good to address the larger issues for the lurkers and the
archives.
  --buck



--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.