in reply to How to write testable command line script?
Hi, does your subroutine expect a string or a list of args?
Edit: Oh, I see you say it does. To pass the args:
ok( main(90,180,270,'+',0,180,90) ...
If the sub returns the list of numbers, test with is_deeply() from Test::More. If it returns a string, use is().
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to write testable command line script?
by thechartist (Monk) on Nov 21, 2018 at 03:13 UTC | |
by 1nickt (Canon) on Nov 21, 2018 at 16:49 UTC |