News for hackers. Stuff that matters.
Re:Fun Numbers - Ruby and Perl (Massive difference in core t... by jeremymcanally on Friday April 17, 2009 @05:23PM (#567660)
Perhaps they should add RubySpec then come back with those numbers. IIRC, there's somewhere in the neighborhood of 50,000 assertions in there and growing everyday.

Unlike Perl, Ruby has elected to make these specs an open community process usable across all implementations. Oops.

Re:Fun Numbers - Ruby and Perl (Massive difference in core t... by wolverian on Friday April 17, 2009 @07:34PM (#567813)
Does the regular Ruby use RubySpec when you run "make test" or such?

Perl 6 does separate the specification from the implementations.

Re:Fun Numbers - Ruby and Perl (Massive difference in core t... by AndrewO on Friday April 17, 2009 @09:54PM (#567942)
Yes.

http://svn.ruby-lang.org/repos/ruby/trunk/Makefile.in

Find "test-rubyspec".

It even `git clone`s rubyspec if you ask it to (update-rubyspec).

Re:Fun Numbers - Ruby and Perl (Massive difference in core t... by wolverian on Saturday April 18, 2009 @12:30PM (#568460)
Thanks, good to know.
Re:Fun Numbers - Ruby and Perl (Massive difference in core t... by AndrewO on Saturday April 18, 2009 @11:28PM (#569070)
Now, granted early 1.8's tests were sparse. RubySpec is a by-product of the alternative implementations and a couple of test attempts (http://blog.headius.com/2008/05/rubyspec-bringing-ruby-test-...).

A lot of developers continue to use MRI 1.8 despite 1.9.1 being out due to API changes. So you could still make the case that the main interpreter being used was at one point not well tested. However, forward progress in the language is tested, so there's nothing really to be remedied.