Sha256: 8e769190457765c52fcda5d529af8202231fc76cda00581ed66f42e909979c71

Contents?: true

Size: 428 Bytes

Versions: 253

Compression:

Stored size: 428 Bytes

Contents

require 'spec_helper'

module ParenthesizedExpressionSpec
  describe "An unadorned expression inside of parentheses" do
    testing_expression '("foo")'
  
    it "should behave as normal" do
      parse('foo').should_not be_nil
    end
  end

  describe "A prefixed-expression inside of parentheses" do
    testing_expression '(!"foo")'
  
    it "should behave as normal" do
      parse('foo').should be_nil
    end
  end
end

Version data entries

253 entries across 208 versions & 31 rubygems

Version Path
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/treetop-1.4.15/spec/compiler/parenthesized_expression_spec.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-codec-json-2.0.3/vendor/gems/treetop-1.4.15/spec/compiler/parenthesized_expression_spec.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/treetop-1.4.15/spec/compiler/parenthesized_expression_spec.rb
logstash-codec-json-2.0.3 vendor/gems/treetop-1.4.15/spec/compiler/parenthesized_expression_spec.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/treetop-1.4.15/spec/compiler/parenthesized_expression_spec.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/treetop-1.4.15/spec/compiler/parenthesized_expression_spec.rb
classiccms-0.7.5 vendor/bundle/gems/treetop-1.4.10/spec/compiler/parenthesized_expression_spec.rb
classiccms-0.7.4 vendor/bundle/gems/treetop-1.4.10/spec/compiler/parenthesized_expression_spec.rb
classiccms-0.7.3 vendor/bundle/gems/treetop-1.4.10/spec/compiler/parenthesized_expression_spec.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/treetop-1.4.12/spec/compiler/parenthesized_expression_spec.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/treetop-1.4.12/spec/compiler/parenthesized_expression_spec.rb
depengine-0.0.31 etc/isolate/ruby-1.8/gems/treetop-1.4.8/spec/compiler/parenthesized_expression_spec.rb
depengine-0.0.31 etc/isolate/jruby-1.8/gems/treetop-1.4.8/spec/compiler/parenthesized_expression_spec.rb
depengine-0.0.30 etc/isolate/jruby-1.8/gems/treetop-1.4.8/spec/compiler/parenthesized_expression_spec.rb
depengine-0.0.30 etc/isolate/ruby-1.8/gems/treetop-1.4.8/spec/compiler/parenthesized_expression_spec.rb
depengine-0.0.29 etc/isolate/jruby-1.8/gems/treetop-1.4.8/spec/compiler/parenthesized_expression_spec.rb
depengine-0.0.29 etc/isolate/ruby-1.8/gems/treetop-1.4.8/spec/compiler/parenthesized_expression_spec.rb
depengine-0.0.28 etc/isolate/ruby-1.8/gems/treetop-1.4.8/spec/compiler/parenthesized_expression_spec.rb
depengine-0.0.28 etc/isolate/jruby-1.8/gems/treetop-1.4.8/spec/compiler/parenthesized_expression_spec.rb
depengine-0.0.27 etc/isolate/jruby-1.8/gems/treetop-1.4.8/spec/compiler/parenthesized_expression_spec.rb