[#1551] Hashes as keys — "Nathaniel Talbott" <nathaniel@...>

I was just playing around with Hash#hash and discovered that you can't use a

13 messages 2003/09/23

Re: New tests

From: "NAKAMURA, Hiroshi" <nahi@...>
Date: 2003-09-05 01:07:38 UTC
List: ruby-core #1514
Hi, Dave,

> From: "Dave Thomas" <Dave@PragProg.com>
> Sent: Friday, September 05, 2003 9:37 AM

> I was looking through the new test/ruby/* stuff just now, and notices 
> that the code did
> 
>    assert( 1+2 == 3)
> 
> rather than
> 
>    assert_equal(3, 1+2)
> 
> In general, wouldn't it be better to do the latter, so that we get 
> meaningful error messages?

Definitely.  Splitter.rb which I made only translates 'test_ok' into 'assert'.
I'll do it tonight (by hand, maybe...).

Beside this, rubicon should be located at test/rubicon and supersedes test/ruby.

Regards,
// NaHi

In This Thread