All Downloads are FREE. Search and download functionalities are using the official Maven repository.

crystal.spec_helper.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
# {{#lambdaPrefixWithHash}}{{> api_info}}{{/lambdaPrefixWithHash}}

# load modules
require "spec"
require "json"
require "../src/{{{shardName}}}"

def assert_compilation_error(path : String, message : String) : Nil
  buffer = IO::Memory.new
  result = Process.run("crystal", ["run", "--no-color", "--no-codegen", path], error: buffer)
  result.success?.should be_false
  buffer.to_s.should contain message
  buffer.close
end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy