Sha256: 50b0f26822b1dbfc74011aa79dadb73cbddfa70b620aa82b7b69722c9ebd76ca

Contents?: true

Size: 628 Bytes

Versions: 1

Compression:

Stored size: 628 Bytes

Contents

# -*- coding: utf-8 -*-
require "sixarm_ruby_geometry_test"
require "sixarm_ruby_geometry/space/array/d2"
require "sixarm_ruby_geometry_test/fake"

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

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

        class C < ::Array
          include ::Space::Array::D2
        end

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

        def test_index
          e0 = fake_n
          e1 = fake_n
          c = C[e0, e1]
          assert_equal(e0, c[0])
          assert_equal(e1, c[1])
        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/space/array/d2_test.rb