Sha256: 106bef23acadb3ea24628e0583a11657acdff2537709203af610a11a24b259f2

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 Bytes

Contents

require File.expand_path('../test_helper.rb', File.dirname(__FILE__))

describe RipperRubyParser::Parser do
  describe "#parse" do
    describe "for negated operators" do
      specify do
        "foo !~ bar".must_be_parsed_as s(:not,
                                         s(:call,
                                           s(:call, nil, :foo, s(:arglist)),
                                           :=~,
                                           s(:arglist,
                                             s(:call, nil, :bar, s(:arglist)))))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ripper_ruby_parser-0.0.5 test/unit/parser_operators_test.rb