teeworlds_network/spec/02_packet_spec.rb

10 lines
219 B
Ruby
Raw Normal View History

2022-11-05 16:04:42 +00:00
require_relative '../lib/packet'
describe 'Packet', :packet do
context 'Set flag bits' do
it 'Should set the control flag bit' do
2022-11-05 16:19:05 +00:00
expect(PacketFlags.new(control: true).bits).to eq('0001')
2022-11-05 16:04:42 +00:00
end
end
end