Sha256: b401a285ae5cd21c0d645cee014ae80902859193c324b25452482d18fa70c421

Contents?: true

Size: 369 Bytes

Versions: 21

Compression:

Stored size: 369 Bytes

Contents

require "spec_helper"

RSpec.describe Code::Parser::Group do
  subject { Code::Parser.parse(input) }

  [
    [
      "(true (nothing))",
      [{ group: [{ boolean: "true" }, { group: [{ nothing: "nothing" }] }] }]
    ]
  ].each do |input, output|
    context input.inspect 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/parser/group_spec.rb
language-ruby-0.5.6 spec/code/parser/group_spec.rb
code-ruby-0.5.6 spec/code/parser/group_spec.rb
template-ruby-0.5.5 spec/code/parser/group_spec.rb
language-ruby-0.5.5 spec/code/parser/group_spec.rb
code-ruby-0.5.5 spec/code/parser/group_spec.rb
template-ruby-0.5.4 spec/code/parser/group_spec.rb
language-ruby-0.5.4 spec/code/parser/group_spec.rb
code-ruby-0.5.4 spec/code/parser/group_spec.rb
template-ruby-0.5.3 spec/code/parser/group_spec.rb
language-ruby-0.5.3 spec/code/parser/group_spec.rb
code-ruby-0.5.3 spec/code/parser/group_spec.rb
template-ruby-0.5.2 spec/code/parser/group_spec.rb
language-ruby-0.5.2 spec/code/parser/group_spec.rb
code-ruby-0.5.2 spec/code/parser/group_spec.rb
language-ruby-0.5.1 spec/code/parser/group_spec.rb
template-ruby-0.5.1 spec/code/parser/group_spec.rb
code-ruby-0.5.1 spec/code/parser/group_spec.rb
template-ruby-0.5.0 spec/code/parser/group_spec.rb
language-ruby-0.5.0 spec/code/parser/group_spec.rb