On Mon, Feb 16, 2009 at 9:17 AM, Ovid <publiustemp-perl...@yahoo.com> wrote: > ----- Original Message ---- > >> From: Gabor Szabo <szab...@gmail.com> > >> It is obvious but would be nice if would not happen >> >> use Test::More; >> diag explain $data; >> >> works nicely, then if I swicth to >> >> use Test::Most; >> diag explain $data; >> >> it stops printing as it now requires TEST_VERBOSE >> >> >> so Test::Most is not a drop-in replacement for Test::More. > > In Test::Most, 'explain' shows the output all by itself. You don't need the > diag() in front of it. At the time I wrote it, it was backwards-compatible > because Test::More didn't have it.
yes I noticed that it works differently but now they don't work together and that is very sad! Really guys, you should find a solution that will satisfy both of you. > I argued that most programmers would just want to do this: > > explain $thing; > > Schwern argued that I was now trying to do too much with explain (call Dumper > and output) and that those should be separate. > > While he's right that explain() would be doing more than one thing, I feel > that optimizing for the common case is what was important here (you just want > your data dumped), but Schwern and I couldn't agree, hence the > incompatibility. Probably neither of you will like but what about having two different names then? For the sake of world peace and the sanity of users I hope it is not too late to change it. What about having a function dig() [1] that will dump if needed but not print and explain() that will replace note(dig()). (I think this is the same as what explain() is in Test::Most.) Please restore the Test::Simple => Test::More => Test::Most drop in replacement chain! I offer both of you a beer or whatever your favorite drink the next time we meet! Gabor [1] look, its shorter!