require 'minitest/autorun'
require 'a_bit_bit_cnt'

class TestABitBitCnt < MiniTest::Test
  SCENARIOS = [
    {
      number: 3,
      output: 6
    },
    {
      number: 13,
      output: 10
    },
    {
      number: 1,
      output: 1
    }
  ]

  def test_output
    SCENARIOS.each do |scenario|
      assert_equal(
        scenario[:output],
        a_bit_bit_cnt(scenario[:number])
      )
    end
  end
end
