Sha256: 5b84dc1ab92ae19bc7e2a5bf3c6787317f2374b34b7a274388700934ae681ad0

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

require 'spec_helper'
module Finitio
  describe Syntax, "comment" do

    subject{
      Syntax.parse(input, root: "comment")
    }

    [
      '#',
      "#\n",
      "# \n",
      '# foo bar',
      "# foo bar\n",
    ].each do |source|
      context "when `#{source}`" do
        let(:input){ source }

        it 'should parse' do
          subject.should eq(source)
        end
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
finitio-0.4.1 spec/unit/syntax/nodes/test_comment.rb
finitio-0.4.0 spec/unit/syntax/nodes/test_comment.rb