Sha256: 4aa343e9f993709042a4293035dfb8a05e5c7639eef5c65b95466a361ede430b
Contents?: true
Size: 618 Bytes
Versions: 1
Compression:
Stored size: 618 Bytes
Contents
# -*- coding: utf-8 -*- require "sixarm_ruby_geometry_test" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_geometry-4.0.0 | test/sixarm_ruby_geometry_test/indexable/x_test.rb |