Sha256: 68f2b22b0d89d584c66d1fc3135b3a319fd1bb5939cb4791dcb86e1b2989a74f
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
# -*- coding: utf-8 -*- require "minitest/autorun" require "simplecov" SimpleCov.start require "sixarm_ruby_geometry/indexable/rad" require "sixarm_ruby_geometry_test/fake" module Indexable class RadTest < Minitest::Test def test_0 assert(::Indexable::Rad) end require "matrix" class C < Vector include ::Indexable::Rad end DELTA = 0.00001 def test_rad assert_in_delta(Math::PI * 0.0, C[ 1, 0].rad, DELTA) assert_in_delta(Math::PI * 0.5, C[ 0, 1].rad, DELTA) assert_in_delta(Math::PI * 1.0, C[-1, 0].rad, DELTA) assert_in_delta(Math::PI * -0.5, C[ 0,-1].rad, DELTA) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_geometry-3.1.1 | test/sixarm_ruby_geometry_test/indexable/rad_test.rb |
sixarm_ruby_geometry-3.0.0 | test/sixarm_ruby_geometry_test/indexable/rad_test.rb |