From: "James M. Lawrence" Date: 2008-10-21T21:42:12+09:00 Subject: Re: prob with ranges James M. Lawrence wrote: > > I used this as a self-tutorial for learning RSpec for the first time. > > % spec ./specification.rb -fs > > Synopsis > - (3..7).to_a #=> [3, 4, 5, 6, 7] > - (7..3).to_a #=> [] > - reversible(3..7).to_a #=> [3, 4, 5, 6, 7] > - reversible(7..3).to_a #=> [7, 6, 5, 4, 3] > > [...] I received an email which indicated this needs some explanation. Yes, this is the RSpec output. I give it an equation, run it through RSpec, then transform it as above. So in this case the test and the documentation are the same thing. -- Posted via http://www.ruby-forum.com/.