Sha256: c50071f7acde2d8fdb7cd596b27be3c16597837f3f5a7e69a1a1022321edcfd0
Contents?: true
Size: 365 Bytes
Versions: 5
Compression:
Stored size: 365 Bytes
Contents
require 'test_helper' class ExtensionsTest < Test::Unit::TestCase def test_method_power_of_2? assert_equal true, 16.power_of_2? assert_equal false, 20.power_of_2? end def test_method_closest_power_of_2 assert_equal 8, 6.closest_power_of_2 assert_equal 16, 13.closest_power_of_2 assert_equal 32, 24.closest_power_of_2 end end
Version data entries
5 entries across 5 versions & 2 rubygems