Programming challenge
Hans Fugal
hans at fugal.net
Fri Sep 28 09:59:40 MDT 2007
On Fri, 28 Sep 2007 at 09:57 -0600, Hans Fugal wrote:
> # tests
> ['8:12','10:12:33', '5 + 3*6:50', '8 / 13*15:32:20.4 - 10'].each do |e|
> puts "#{e} -> #{secondize(e)}"
> end
Missed an obvious test case:
10:25 - 6:50 / 12:23:44 -> 625.0 - 410.0 / 44624.0
--
Hans Fugal ; http://hans.fugal.net
There's nothing remarkable about it. All one has to do is hit the
right keys at the right time and the instrument plays itself.
-- Johann Sebastian Bach
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://plug.org/pipermail/plug/attachments/20070928/03745f90/attachment.bin
More information about the PLUG
mailing list