Sha256: 8e62a90ad0c67812ea23e5f5d93dbfc8e8bc259cc233164bb47747a1ca5bd994

Contents?: true

Size: 368 Bytes

Versions: 21

Compression:

Stored size: 368 Bytes

Contents

require "spec_helper"

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

  [
    ["1 > 2", "false"],
    ["1 < 2", "true"],
    ["1 <= 1", "true"],
    ["1 >= 1", "true"]
  ].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
template-ruby-0.5.6 spec/code/greater_spec.rb
language-ruby-0.5.6 spec/code/greater_spec.rb
code-ruby-0.5.6 spec/code/greater_spec.rb
template-ruby-0.5.5 spec/code/greater_spec.rb
language-ruby-0.5.5 spec/code/greater_spec.rb
code-ruby-0.5.5 spec/code/greater_spec.rb
template-ruby-0.5.4 spec/code/greater_spec.rb
language-ruby-0.5.4 spec/code/greater_spec.rb
code-ruby-0.5.4 spec/code/greater_spec.rb
template-ruby-0.5.3 spec/code/greater_spec.rb
language-ruby-0.5.3 spec/code/greater_spec.rb
code-ruby-0.5.3 spec/code/greater_spec.rb
template-ruby-0.5.2 spec/code/greater_spec.rb
language-ruby-0.5.2 spec/code/greater_spec.rb
code-ruby-0.5.2 spec/code/greater_spec.rb
language-ruby-0.5.1 spec/code/greater_spec.rb
template-ruby-0.5.1 spec/code/greater_spec.rb
code-ruby-0.5.1 spec/code/greater_spec.rb
template-ruby-0.5.0 spec/code/greater_spec.rb
language-ruby-0.5.0 spec/code/greater_spec.rb