Sha256: 84ad20c036a6c7c463751263677bd388fcb6ab7fb726c9a85de0e71748f7ccd7

Contents?: true

Size: 385 Bytes

Versions: 5

Compression:

Stored size: 385 Bytes

Contents

# -*- coding: utf-8 -*-
require "sixarm_ruby_ramp_test"

class MathTest < Minitest::Test

  def test_ln
    assert_equal(0.0,Math.ln(1.0))
    assert_equal(1.0,Math.ln(Math.exp(1.0)))
  end

  def test_logn
    assert_equal(1.0,Math.logn(3,3),'log of 3 base 3')
    assert_equal(2.0,Math.logn(9,3),'log of 9 base 3')
    assert_equal(3.0,Math.logn(27,3),'log of 27 base 3')
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sixarm_ruby_ramp-5.0.2 test/sixarm_ruby_ramp_test/math_test.rb
sixarm_ruby_ramp-5.0.1 test/sixarm_ruby_ramp_test/math_test.rb
sixarm_ruby_ramp-5.0.0 test/sixarm_ruby_ramp_test/math_test.rb
sixarm_ruby_ramp-4.2.7 test/sixarm_ruby_ramp_test/math_test.rb
sixarm_ruby_ramp-4.2.5 test/sixarm_ruby_ramp_test/math_test.rb