my-solutions/problems/1582-special-positions-in-a-binary-matrix/test.rb

13 lines
280 B
Ruby
Raw Normal View History

require_relative 'main'
require 'test/unit'
class TestNumSpecial < Test::Unit::TestCase
def test_simple
assert_equal(1, num_special([[1, 0, 0], [0, 0, 1], [1, 0, 0]]))
end
def test_multiple
assert_equal(3, num_special([[1, 0, 0], [0, 1, 0], [0, 0, 1]]))
end
end