Re: Diagnostics

2008-02-13 Thread Chris Dolan
On Feb 13, 2008, at 9:51 AM, Matisse Enzer wrote: And of course, in the Java world, it is "Expected/Got" (JUnit wants the expected value as the first argument to assertions.) ;-) TestNG (testng.org) reversed the JUnit order, so Java unit test assert arguments are now the same order as Test

Re: New assertions in Ruby

2008-02-13 Thread Michael G Schwern
Adrian Howard wrote: which isn't _too_ shabby, but doesn't help much with things like: ok_if { Foo->new->answer == 42 }; or ok_if { $Some_dynamic_var == 42 }; So I don't really think it's worth pursuing. Well, if we follow the logic of the assert2 author, you're just being SLOPPY u

Re: Smoking private dists? was Re: Diagnostics was Re: Smoking private dists?

2008-02-13 Thread Michael Peters
Paul Johnson wrote: > But did we ever get an answer to the original question? I have a > similar requirement and the answers currently seem to be > > 1. Buildbot (which seems to be overkill in my situation) > 2. Smolder and some scripts > > Is that a fair summary? I'd add a #3 which is B

Smoking private dists? was Re: Diagnostics was Re: Smoking private dists?

2008-02-13 Thread Paul Johnson
On Wed, Feb 13, 2008 at 07:51:24AM -0800, Matisse Enzer wrote: > And of course, in the Java world, it is "Expected/Got" (JUnit wants the > expected value as the first argument to assertions.) Which is, of course, the right way round, however you spell "Got". (Hint: it's "Received".) Haven't we

Re: Diagnostics

2008-02-13 Thread Matisse Enzer
On Feb 12, 2008, at 1:44 PM, David Landgren wrote: I wish you'd s/Got/Actual/ or Received. Got must die. I like Got/Expected - I understood them right away when i first encountered them, and they seem like "plain english" to me: "I only got 5 dollars when I expected 10!" "Expected an arr

Re: New assertions in Ruby

2008-02-13 Thread Adrian Howard
On 13 Feb 2008, at 00:10, Michael G Schwern wrote: [snip] Data::Dump::Streamer can decompile a code reference, complete with attached lexicals. But as has been pointed out by Yuval, the real trick is to show the value of all variables used in the block. [snip] Yeah... hadn't considered glo

Re: Diagnostics

2008-02-13 Thread Philippe Bruhat (BooK)
On Wed, Feb 13, 2008 at 12:34:44AM -0800, Ovid wrote: > > As for "received/expected", I really like it because it reads very > nicely (the verbs aren't quite the opposite of each other, but I still > like 'em). > Oh, and they line up nicely too, in case you want to do some ascii formatting:

Re: Diagnostics

2008-02-13 Thread Ovid
--- Michael G Schwern <[EMAIL PROTECTED]> wrote: > David Landgren wrote: > > I wish you'd s/Got/Actual/ or Received. Got must die. > > Why's that? "Got" is the simple past of "to get". Informally it's often used as the past tense of "to have" -- as in Test::More diagnostics. While it's not exa