Sha256: d8fee9bc99622c9919988149a1acc257868c2d7e09b678af71592876a2fd271a
Contents?: true
Size: 587 Bytes
Versions: 2
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true require_relative 'test_helper' Java::Monkstone::PropaneLibrary.load(JRuby.runtime) Dir.chdir(File.dirname(__FILE__)) class DeglutTest < Minitest::Test attr_reader :to_radian def setup @to_radian = Math::PI / 180 end def test_cos_sin (-720..720).step(1) do |deg| sine = DegLut.sin(deg) deg_sin = Math.sin(deg * to_radian) assert_in_delta(sine, deg_sin, delta = 0.000001) cosine = DegLut.cos(deg) deg_cos = Math.cos(deg * to_radian) assert_in_delta(cosine, deg_cos, delta = 0.000001) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
propane-2.3.0-java | test/test_deglut_spec.rb |
propane-2.1.1-java | test/test_deglut_spec.rb |