Sha256: d0df4ffeaaeba5680137214245b3b75fa3f0a7df91186b2f9b50dec3bb9fe2d7
Contents?: true
Size: 1002 Bytes
Versions: 1
Compression:
Stored size: 1002 Bytes
Contents
# -*- coding: utf-8 -*- require "sixarm_ruby_geometry_test" require "sixarm_ruby_geometry/point/array" require "sixarm_ruby_geometry_test/fake" module Point module Array class Test < Minitest::Test def test_0 assert(::Point::Array) end class C < ::Array include ::Point::Array end def test_new assert(C[0]) end def test_index e0 = fake_n c = C[e0] assert_equal(e0, c[0]) end def test_plus a0 = fake_n a1 = fake_n a = C[a0, a1] b0 = fake_n b1 = fake_n b = C[b0, b1] c0 = a0 + b0 c1 = a1 + b1 c = C[c0, c1] assert_equal(c, a + b) end def test_minus a0 = fake_n a1 = fake_n a = C[a0, a1] b0 = fake_n b1 = fake_n b = C[b0, b1] c0 = a0 - b0 c1 = a1 - b1 c = C[c0, c1] assert_equal(c, a - b) 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/point/array_test.rb |