A
Andrey Kulinich
Without test/unit ruby finished work and said that stack level too deep.
Is this correct that in this code ruby goes to infinity recursion?
ruby 1.8.0 (2003-06-06) [i386-freebsd4.7]
---
#!/usr/local/bin/ruby
require 'test/unit'
module Recur
def self.new
Recur.new
end
end
class Tests < Test::Unit::TestCase
def test_1
Recur.new
end
end
--
with best regards,
Andrey Kulinich
IT Group
Software developer
phone/fax +380 (372) 58-43-10
e-mail: (e-mail address removed)
http://www.itgrp.net
Is this correct that in this code ruby goes to infinity recursion?
ruby 1.8.0 (2003-06-06) [i386-freebsd4.7]
---
#!/usr/local/bin/ruby
require 'test/unit'
module Recur
def self.new
Recur.new
end
end
class Tests < Test::Unit::TestCase
def test_1
Recur.new
end
end
--
with best regards,
Andrey Kulinich
IT Group
Software developer
phone/fax +380 (372) 58-43-10
e-mail: (e-mail address removed)
http://www.itgrp.net