Sha256: 8ceb898526f30608e421e0e37eba91dd09f5c2effc08d04d3f2ec07e25ec3976
Contents?: true
Size: 414 Bytes
Versions: 7
Compression:
Stored size: 414 Bytes
Contents
require 'minitest/autorun' require 'sphero' class TestSpheroRequest < MiniTest::Unit::TestCase def test_ping_checksum ping = Sphero::Request::Ping.new 0 expected_bytes = "\xFF\xFF\x00\x01\x00\x01\xFD".force_encoding(Encoding::ASCII_8BIT) assert_equal expected_bytes, 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
7 entries across 7 versions & 2 rubygems