Sha256: fd486f6e64771b9860dda294ec6add10bb2382be72bdfba5a73a5e4593277bbb

Contents?: true

Size: 744 Bytes

Versions: 2

Compression:

Stored size: 744 Bytes

Contents

require_relative "../spec_helper"

feature "Analog" do
  scenario "inputs" do
    analog_input_4_should_be_about 5.0

    analog_input_1_should_be_about 0.0
  end

  scenario "outputs" do
    write_analog_1 5.0
    analog_input_0_should_be_about 5.0

    write_analog_1 0.0
    analog_input_0_should_be_about 0.0

    write_analog_1 2.77
    analog_input_0_should_be_about 2.77

    write_analog_1 3.19
    analog_input_0_should_be_about 3.19

    write_analog_0 5.0
    analog_input_6_should_be_about 5.0

    write_analog_0 0.0
    analog_input_6_should_be_about 0.0

    write_analog_0 3.75
    analog_input_6_should_be_about 3.75

    write_analog_0 1.88
    analog_input_6_should_be_about 1.88
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minilab-2.0.1-x86-mingw32 spec/acceptance/analog_spec.rb
minilab-2.0.0-x86-mingw32 spec/acceptance/analog_spec.rb