On Thu, Jun 25, 2009 at 5:49 AM, Ovid<[email protected]> wrote:
> I understand where you're coming from, but different things should look
> different. SKIP and TODO are relatively similar, but subtests are
> significantly different from them.
The implementation is vastly different, but semantically, they just
provide context around a set of tests.
Though it does make me wonder how/whether subtests can be marked TODO.
(Whereas SKIP can be done through skip_all with plan). Does plan()
need a "todo/todo_all" option? Or would it be just nesting a TODO
block in the subtest?
> In any event, I'm completely mystified why anyone has a problem with the
> "subtest $name, sub { ...}" syntax. Honestly :)
I don't really have a problem with it, either, other than golf score.
Though I'd still possibly prefer something like this:
subtest "Sanity check" => sub {
plan 3; # or subplan()
pass for 1..3;
}
-- David