Sha256: e0d2f72bce02ad12100034f4506b075bb603a1c925363f373e6ff3dba140b3a3

Contents?: true

Size: 296 Bytes

Versions: 21

Compression:

Stored size: 296 Bytes

Contents

require "spec_helper"

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

  [
    "() => {}",
    "(a, b) => { add(a, b) }",
    "(a:, b:) => { add(a, b) }"
  ].each do |input|
    context input do
      let(:input) { input }
      it { subject }
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
template-ruby-0.5.6 spec/code/parser/function_spec.rb
language-ruby-0.5.6 spec/code/parser/function_spec.rb
code-ruby-0.5.6 spec/code/parser/function_spec.rb
template-ruby-0.5.5 spec/code/parser/function_spec.rb
language-ruby-0.5.5 spec/code/parser/function_spec.rb
code-ruby-0.5.5 spec/code/parser/function_spec.rb
template-ruby-0.5.4 spec/code/parser/function_spec.rb
language-ruby-0.5.4 spec/code/parser/function_spec.rb
code-ruby-0.5.4 spec/code/parser/function_spec.rb
template-ruby-0.5.3 spec/code/parser/function_spec.rb
language-ruby-0.5.3 spec/code/parser/function_spec.rb
code-ruby-0.5.3 spec/code/parser/function_spec.rb
template-ruby-0.5.2 spec/code/parser/function_spec.rb
language-ruby-0.5.2 spec/code/parser/function_spec.rb
code-ruby-0.5.2 spec/code/parser/function_spec.rb
language-ruby-0.5.1 spec/code/parser/function_spec.rb
template-ruby-0.5.1 spec/code/parser/function_spec.rb
code-ruby-0.5.1 spec/code/parser/function_spec.rb
template-ruby-0.5.0 spec/code/parser/function_spec.rb
language-ruby-0.5.0 spec/code/parser/function_spec.rb