Sha256: eeadcf28e1a55f3f32bb690794d6bc2f050b869442b60df209bea530fee6db28

Contents?: true

Size: 641 Bytes

Versions: 1

Compression:

Stored size: 641 Bytes

Contents

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

module Indexable
  module D3
    class Test < Minitest::Test

      def test_0
        assert(::Indexable::D3)
      end

      require "matrix"
      class C < Vector
        include ::Indexable::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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sixarm_ruby_geometry-4.0.0 test/sixarm_ruby_geometry_test/indexable/d3_test.rb