Sha256: 8e59f3928c0466339ac821daf342b42bb22fcae811b43068387f94088963757e

Contents?: true

Size: 297 Bytes

Versions: 70

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

RSpec.describe Code::Parser::List do
  [
    "[]",
    "[ ]",
    "[/* comment */]",
    "[1, 2, 3]",
    "['hello', 1, true, [false, nothing]]"
  ].each do |input|
    it "parses #{input}" do
      Code::Parser.parse(input)
    end
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
code-ruby-0.7.1 spec/code/parser/list_spec.rb
code-ruby-0.7.0 spec/code/parser/list_spec.rb
code-ruby-0.6.7 spec/code/parser/list_spec.rb
code-ruby-0.6.6 spec/code/parser/list_spec.rb
code-ruby-0.6.5 spec/code/parser/list_spec.rb
code-ruby-0.6.4 spec/code/parser/list_spec.rb
code-ruby-0.6.3 spec/code/parser/list_spec.rb
code-ruby-0.6.2 spec/code/parser/list_spec.rb
code-ruby-0.6.1 spec/code/parser/list_spec.rb
code-ruby-0.6.0 spec/code/parser/list_spec.rb