jesnault/bgp4r — Issue #1: link_bandwidth encoding is bogus
Author: jesnault
Created: 2011-10-29 19:10:09+00:00
State: open

Fix is on its way

def test_link_bandwidth
- assert_equal('04040000461c4000', Link_bandwidth.new(10_000).to_shex)
+ assert_equal('40040000461c4000', Link_bandwidth.new(10_000).to_shex)
assert_equal('Link bandwidth: 10000.0', Link_bandwidth.new(10_000).to_s)
assert_equal('Link bandwidth: 10000.0', Link_bandwidth.new(['04040000461c40
- assert_equal('040400004cbebc20', Link_bandwidth.new(99_999_999).to_shex)
+ assert_equal('400400004cbebc20', Link_bandwidth.new(99_999_999).to_shex)
assert_equal('Link bandwidth: 100000000.0', Link_bandwidth.new(99_999_999).
assert_equal('Link bandwidth: 100000000.0', Link_bandwidth.new(['040400004c
end