Sha256: 3b1b4f63a48f9aaa1067d4c8d09773005f122b94f75d917fbf8887456b1493d3

Contents?: true

Size: 428 Bytes

Versions: 9

Compression:

Stored size: 428 Bytes

Contents

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

class TestBlock < MiniTest::Test

  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

9 entries across 9 versions & 1 rubygems

Version Path
arduino_firmata-0.3.7 test/test_block.rb
arduino_firmata-0.3.6 test/test_block.rb
arduino_firmata-0.3.5 test/test_block.rb
arduino_firmata-0.3.4 test/test_block.rb
arduino_firmata-0.3.3 test/test_block.rb
arduino_firmata-0.3.2 test/test_block.rb
arduino_firmata-0.3.1 test/test_block.rb
arduino_firmata-0.3.0 test/test_block.rb
arduino_firmata-0.2.9 test/test_block.rb