Sha256: 60e033cc73ca1c865a1775a9ce607f720e5a66094edc7626e00ecd61ef05fe50

Contents?: true

Size: 529 Bytes

Versions: 10

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

require_relative '../../lib/csv_decision'

describe CSVDecision::Decision do
  it 'decision for table with no functions and first_match: true' do
    data = <<~DATA
      IN :input, OUT :output, IN: input1
      input0,    output0,     input1
      input0,    output1,
    DATA

    table = CSVDecision.parse(data)

    input = { input: 'input0', input1: 'input1' }

    decision = CSVDecision::Decision.new(table: table, input: input)

    expect(decision).to be_a(CSVDecision::Decision)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
csv_decision-0.4.1 spec/csv_decision/decision_spec.rb
csv_decision-0.4.0 spec/csv_decision/decision_spec.rb
csv_decision-0.3.2 spec/csv_decision/decision_spec.rb
csv_decision-0.3.1 spec/csv_decision/decision_spec.rb
csv_decision-0.3.0 spec/csv_decision/decision_spec.rb
csv_decision-0.2.0 spec/csv_decision/decision_spec.rb
csv_decision-0.1.0 spec/csv_decision/decision_spec.rb
csv_decision-0.0.9 spec/csv_decision/decision_spec.rb
csv_decision-0.0.8 spec/csv_decision/decision_spec.rb
csv_decision-0.0.7 spec/csv_decision/decision_spec.rb