Sha256: 3b0bd2bb38bf51c90276617f5615e64da50b7ee4b1be8561595b623d7487c18d

Contents?: true

Size: 340 Bytes

Versions: 1

Compression:

Stored size: 340 Bytes

Contents

require 'bundler/setup'
require 'minitest/autorun'
require 'methic'

module ParserTestHelper
  def assert_evals_to_self(input)
    assert_evals_to(input, input)
  end

  def parse(input)
    result = @parser.parse(input)
    unless result
      puts @parser.terminal_failures.join("\n")
    end
    assert !result.nil?
    result
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
methic-0.0.1 test/test_helper.rb