Parent

MandelbrotTest

Public Instance Methods

setup() click to toggle source

(Not documented)

# File test/mandelbrot_test.rb, line 7
  def setup
    mandelbrot = Mandelbrot.new
    mandelbrot.write
  end
teardown() click to toggle source

(Not documented)

# File test/mandelbrot_test.rb, line 12
  def teardown
    File.delete('fractal.png')
  end
test_false_in_set?() click to toggle source

(Not documented)

# File test/renderer_test.rb, line 7
  def test_false_in_set?
    mandelbrot = Mandelbrot.new
    assert_equal(false, mandelbrot.in_set?(Complex(-5.0, -5.0)))
  end
test_file_size() click to toggle source

(Not documented)

# File test/mandelbrot_test.rb, line 16
  def test_file_size
    assert_equal(9687, File.size?('fractal.png'))
  end
test_true_in_set?() click to toggle source

(Not documented)

# File test/renderer_test.rb, line 12
  def test_true_in_set?
    mandelbrot = Mandelbrot.new
    assert_equal(true, mandelbrot.in_set?(Complex(0.0, 0.0)))
  end
test_where_is?() click to toggle source

(Not documented)

# File test/renderer_test.rb, line 17
  def test_where_is?
    mandelbrot = Mandelbrot.new
    assert_equal(Complex(-2.15, -1.5), mandelbrot.where_is?(0, 0))
  end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.