Sha256: f90f75665b797c37d7445ff81ce7229b0fa025cca3cbe1ed914444a209fed062

Contents?: true

Size: 286 Bytes

Versions: 62

Compression:

Stored size: 286 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

RSpec.describe Code::Object::List do
  [["[] == []", "true"], ["[1, 2, 3].sum", "6"]].each do |input, expected|
    it "#{input} == #{expected}" do
      expect(Code.evaluate(input)).to eq(Code.evaluate(expected))
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
code-ruby-1.1.3 spec/code/object/list_spec.rb
code-ruby-1.1.1 spec/code/object/list_spec.rb
code-ruby-1.1.0 spec/code/object/list_spec.rb
code-ruby-1.0.0 spec/code/object/list_spec.rb
code-ruby-0.15.16 spec/code/object/list_spec.rb
code-ruby-0.15.15 spec/code/object/list_spec.rb
code-ruby-0.15.14 spec/code/object/list_spec.rb
code-ruby-0.15.13 spec/code/object/list_spec.rb
code-ruby-0.15.12 spec/code/object/list_spec.rb
code-ruby-0.15.11 spec/code/object/list_spec.rb
code-ruby-0.15.10 spec/code/object/list_spec.rb
code-ruby-0.15.9 spec/code/object/list_spec.rb
code-ruby-0.15.8 spec/code/object/list_spec.rb
code-ruby-0.15.7 spec/code/object/list_spec.rb
code-ruby-0.15.6 spec/code/object/list_spec.rb
code-ruby-0.15.5 spec/code/object/list_spec.rb
code-ruby-0.15.4 spec/code/object/list_spec.rb
code-ruby-0.15.3 spec/code/object/list_spec.rb
code-ruby-0.15.2 spec/code/object/list_spec.rb
code-ruby-0.15.0 spec/code/object/list_spec.rb