Project

General

Profile

Feature #10444 ยป add_test.patch

gogotanaka (Kazuki Tanaka), 10/29/2014 08:13 AM

View differences:

test/matrix/test_vector.rb
61 61
    assert_equal(2, @v1[1])
62 62
    assert_equal(3, @v1[2])
63 63
    assert_equal(3, @v1[-1])
64
    assert_equal(nil, @v1[3])
64
    assert_equal(Vector[1, 2], @v1[0..1])
65
    assert_equal(Vector[2, 3], @v1[1..-1])
66
    assert_nil(@v1[10..11])
67
    assert_nil(@v1[3])
65 68
  end
66 69
  def test_size
67
-