Sha256: 98d59421a7ea51844af73a76d81f6a189d8b63bbc03c8fae85ba255fde3c5068

Contents?: true

Size: 337 Bytes

Versions: 21

Compression:

Stored size: 337 Bytes

Contents

require "spec_helper"

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

  [
    ["(0..1).to_list", "[0, 1]"],
    ["(0...1).to_list", "[0]"]
  ].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/range_spec.rb
language-ruby-0.5.6 spec/code/range_spec.rb
code-ruby-0.5.6 spec/code/range_spec.rb
template-ruby-0.5.5 spec/code/range_spec.rb
language-ruby-0.5.5 spec/code/range_spec.rb
code-ruby-0.5.5 spec/code/range_spec.rb
template-ruby-0.5.4 spec/code/range_spec.rb
language-ruby-0.5.4 spec/code/range_spec.rb
code-ruby-0.5.4 spec/code/range_spec.rb
template-ruby-0.5.3 spec/code/range_spec.rb
language-ruby-0.5.3 spec/code/range_spec.rb
code-ruby-0.5.3 spec/code/range_spec.rb
template-ruby-0.5.2 spec/code/range_spec.rb
language-ruby-0.5.2 spec/code/range_spec.rb
code-ruby-0.5.2 spec/code/range_spec.rb
language-ruby-0.5.1 spec/code/range_spec.rb
template-ruby-0.5.1 spec/code/range_spec.rb
code-ruby-0.5.1 spec/code/range_spec.rb
template-ruby-0.5.0 spec/code/range_spec.rb
language-ruby-0.5.0 spec/code/range_spec.rb