Sha256: 524174c1101bf3bc87dcd9621627c70303b80e8a022784e8004c55480b8313fd

Contents?: true

Size: 438 Bytes

Versions: 10

Compression:

Stored size: 438 Bytes

Contents

require File.expand_path 'test_helper', File.dirname(__FILE__)

class TestBlock < MiniTest::Unit::TestCase

  def test_block
    version_ = nil
    ArduinoFirmata.connect ENV['ARDUINO'] do
      version_ = version
    end
    assert version_ and version_ > '2.0'
  end

  def test_block_analog_read
    ain = nil
    ArduinoFirmata.connect ENV['ARDUINO'] do
      ain = analog_read 0
    end
    assert 0 <= ain and ain < 1024
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
arduino_firmata-0.2.8 test/test_block.rb
arduino_firmata-0.2.7 test/test_block.rb
arduino_firmata-0.2.6 test/test_block.rb
arduino_firmata-0.2.5 test/test_block.rb
arduino_firmata-0.2.4 test/test_block.rb
arduino_firmata-0.2.3 test/test_block.rb
arduino_firmata-0.2.2 test/test_block.rb
arduino_firmata-0.2.1 test/test_block.rb
arduino_firmata-0.2.0 test/test_block.rb
arduino_firmata-0.1.8 test/test_block.rb