in reply to Re^3: How to write testable command line script?
in thread How to write testable command line script?
I appreciate your effort but this is my confusion: The script works correctly at the command line and does not issue any warnings, despite use of the strict and warnings pragmas enabled. It is only when I try to run it using automated test tools do those warnings arise.
Example: If I simply call reduce with 1 argument at the command line, it will be pushed onto the @answer array and returned.
This tells me that the instantiation errors are in the way the test code interfaces with the code under test. I don't understand why the arguments aren't being passed to the appropriate subroutine.
If I attempt to pass a list of scalar arguments in the test code, I get syntax errors when I run:
perl -c test_file.t
Also:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: How to write testable command line script?
by GrandFather (Saint) on Nov 21, 2018 at 02:27 UTC | |
by thechartist (Monk) on Nov 21, 2018 at 03:31 UTC | |
by AnomalousMonk (Archbishop) on Nov 21, 2018 at 03:46 UTC | |
by thechartist (Monk) on Nov 21, 2018 at 04:02 UTC |