Sha256: f596309ecbb1dd1cd3d349b74401ae66b5e199c58fb04712ba75b9eec681780a
Contents?: true
Size: 646 Bytes
Versions: 2
Compression:
Stored size: 646 Bytes
Contents
# -*- coding: utf-8 -*- require "minitest/autorun" require "simplecov" SimpleCov.start require "sixarm_ruby_geometry/indexable/x" require "sixarm_ruby_geometry_test/fake" module Indexable class XTest < Minitest::Test def test_0 assert(::Indexable::X) end require "matrix" class C < Vector include ::Indexable::X end def test_x x = fake_n o = C[x] assert_equal(x, o.x) end def test_x_equal x = fake_n o = fake_indexable refute_equal(x, o.x) o.x = x assert_equal(x, o.x) end protected def fake_indexable C[0] 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/x_test.rb |
sixarm_ruby_geometry-3.0.0 | test/sixarm_ruby_geometry_test/indexable/x_test.rb |