"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.halt = exports.fail = exports.die = exports.assertion = exports.Runtime = exports.RuntimeTypeId = exports.Assertion = exports.AssertionTypeId = void 0;
const tracing_1 = __importStar(require("../../Tracing"));
const fileName_1 = "(@effect-ts/system): _src/Testing/TestFailure/index.ts";
const C = __importStar(require("../../Cause"));
const T = __importStar(require("../../Effect"));
exports.AssertionTypeId = Symbol();
class Assertion {
    constructor(result) {
        this.result = result;
        this._typeId = exports.AssertionTypeId;
    }
}
exports.Assertion = Assertion;
exports.RuntimeTypeId = Symbol();
class Runtime {
    constructor(cause) {
        this.cause = cause;
        this._typeId = exports.RuntimeTypeId;
    }
}
exports.Runtime = Runtime;
T._E;
/**
 * Constructs an assertion failure with the specified result.
 */
function assertion(result) {
    return new Assertion(result);
}
exports.assertion = assertion;
/**
 * Constructs a runtime failure that dies with the specified `Throwable`.
 */
function die(e) {
    return halt(C.die(e));
}
exports.die = die;
/**
 * Constructs a runtime failure that fails with the specified error.
 */
function fail(e) {
    return halt(C.fail(e));
}
exports.fail = fail;
/**
 * Constructs a runtime failure with the specified cause.
 */
function halt(cause) {
    return new Runtime(cause);
}
exports.halt = halt;
//# sourceMappingURL=index.js.map