Sha256: 1d9f7a0303969cd5dd9c31c7406b9b6d578f7afc745ae3670cac9d2484ca713c

Contents?: true

Size: 341 Bytes

Versions: 9

Compression:

Stored size: 341 Bytes

Contents

require 'minitest/autorun'
require 'sphero'

class TestSpheroRequest < MiniTest::Unit::TestCase
  def test_ping_checksum
    ping = Sphero::Request::Ping.new 0
    assert_equal "\xFF\xFF\x00\x01\x00\x01\xFD", ping.to_str
  end

  def test_sleep_dlen
    sleep = Sphero::Request::Sleep.new 0, 0, 0
    assert_equal 0x04, sleep.dlen
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hybridgroup-sphero-1.3.0 test/test_sphero_request.rb
hybridgroup-sphero-1.2.0 test/test_sphero_request.rb
hybridgroup-sphero-1.1.6 test/test_sphero_request.rb
hybridgroup-sphero-1.1.5 test/test_sphero_request.rb
hybridgroup-sphero-1.1.4 test/test_sphero_request.rb
hybridgroup-sphero-1.1.3 test/test_sphero_request.rb
hybridgroup-sphero-1.1.2 test/test_sphero_request.rb
hybridgroup-sphero-1.1.1 test/test_sphero_request.rb
hybridgroup-sphero-1.1.0 test/test_sphero_request.rb