Sha256: 7a61afcee88fdaf58cb113d67dd79a494a1a08371f8f42c77363c008d44f11e0

Contents?: true

Size: 718 Bytes

Versions: 2

Compression:

Stored size: 718 Bytes

Contents

# -*- coding: utf-8 -*-
require "minitest/autorun"
require "simplecov"
SimpleCov.start

require "sixarm_ruby_geometry/space/array/d3"
require "sixarm_ruby_geometry_test/fake"

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

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

        class C < ::Array
          include ::Space::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

2 entries across 2 versions & 1 rubygems

Version Path
sixarm_ruby_geometry-3.1.1 test/sixarm_ruby_geometry_test/space/array/d3_test.rb
sixarm_ruby_geometry-3.0.0 test/sixarm_ruby_geometry_test/space/array/d3_test.rb