Sha256: b2de9756202df73ac2351dd392748b988bdb4ceda43dbefbb679a767637f8cef

Contents?: true

Size: 372 Bytes

Versions: 21

Compression:

Stored size: 372 Bytes

Contents

require "spec_helper"

RSpec.describe "or keyword" do
  let(:timeout) { 0 }
  subject { Code.evaluate(input, timeout: timeout).to_s }

  [
    ["true or false", "true"],
    ["true and false", "false"],
    ["random = 1 random", "1"]
  ].each do |input, output|
    context input do
      let(:input) { input }
      it { expect(subject).to eq(output) }
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
code-ruby-0.5.0 spec/code/or_keyword_spec.rb