Sha256: a72b8f444638c8cec43b727210c1cd7eb01d96e1f3a5987a8e135a046352c604
Contents?: true
Size: 851 Bytes
Versions: 1
Compression:
Stored size: 851 Bytes
Contents
# -*- coding: utf-8 -*- require "sixarm_ruby_geometry_test" require "sixarm_ruby_geometry/indexable/xy" require "sixarm_ruby_geometry_test/fake" module Indexable class XYTest < Minitest::Test def test_0 assert(::Indexable::XY) end require "matrix" class C < Vector include ::Indexable::XY end def test_x x = fake_n o = C[x,0] 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 def test_y y = fake_n o = C[0,y] assert_equal(y, o.y) end def test_y_equal y = fake_n o = fake_indexable refute_equal(y, o.y) o.y = y assert_equal(y, o.y) end protected def fake_indexable C[0,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/xy_test.rb |