Sha256: 6489ed3b8ddce0cbee9e08d9bf1f71b7ba094efb54eb3d285a4ba71e3c7916b3

Contents?: true

Size: 690 Bytes

Versions: 1

Compression:

Stored size: 690 Bytes

Contents

# -*- coding: utf-8 -*-
require "sixarm_ruby_geometry_test"
require "sixarm_ruby_geometry/point/array/d3"
require "sixarm_ruby_geometry_test/fake"

module Point
  module Array
    module D3
      class Test < Minitest::Test

        def test_0
          assert(::Point::Array::D3)
        end

        class C < ::Array
          include ::Point::Array::D3
        end

        def test_new
          assert(C[0, 0, 0])
        end

        def test_index
          e0 = fake_n
          e1 = fake_n
          e2 = fake_n
          c = C[e0, e1, e2]
          assert_equal(e0, c[0])
          assert_equal(e1, c[1])
          assert_equal(e2, c[2])
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sixarm_ruby_geometry-4.0.0 test/sixarm_ruby_geometry_test/point/array/d3_test.rb