Steve Peters wrote:
My concern with symlink_ok() is that I'll go to use it and
have to repeatedly check the syntax to see which should be the link and which
should be the file.
That's why the docs suggests using Perl's fat comma operator as an aid.
I agree,
symlink_ok('foo', 'bar');
is ambiguous. But
symlink_ok('foo' => 'bar');
is a lot clearer that we're testing that 'foo' links to 'bar'.
Although I don't mind writing tests, I'd prefer a
test function that doesn't force me to think about the syntax of the test
function and let me focus on writing test cases to match the documentation.
Although there are many cases in which DWIMery is good, I'm not sure
that writing tests is one of them. Otherwise, how can you be sure that
the test is actually testing what you mean, and not what the computer
thought you meant?
N