Sha256: 19777461e5a89a347867f5da4e0ba32162e6d01179fa02e975f89bfcb6ae80c6

Contents?: true

Size: 266 Bytes

Versions: 11

Compression:

Stored size: 266 Bytes

Contents

require_relative 'helper'


class TestBitUtil < Test::Unit::TestCase

  include Xot::BitUtil

  def test_bit()
    assert_equal 0b1,    bit(0)
    assert_equal 0b10,   bit(1)
    assert_equal 0b1000, bit(3)
    assert_equal 0b1010, bit(1, 3)
  end

end# TestBitFlag

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
xot-0.3 test/test_bit_util.rb
xot-0.2.1 test/test_bit_util.rb
xot-0.2 test/test_bit_util.rb
xot-0.1.42 test/test_bit_util.rb
xot-0.1.41 test/test_bit_util.rb
xot-0.1.40 test/test_bit_util.rb
xot-0.1.39 test/test_bit_util.rb
xot-0.1.38 test/test_bit_util.rb
xot-0.1.37 test/test_bit_util.rb
xot-0.1.36 test/test_bit_util.rb
xot-0.1.35 test/test_bit_util.rb