Sha256: 27d50bdf7100ef7aa150c806680a272fe7e44ee3be3344e55b87096a71c672d4

Contents?: true

Size: 334 Bytes

Versions: 2

Compression:

Stored size: 334 Bytes

Contents

require 'minitest/autorun'
require 'sphero'

class TestSphero < 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

2 entries across 2 versions & 2 rubygems

Version Path
hybridgroup-sphero-1.0.1 test/test_sphero.rb
sphero-1.0.0 test/test_sphero.rb