"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.assert = assert;
exports.equal = equal;
exports.deepEqual = deepEqual;
const f_1 = __importDefault(require("../system/f/comparison/Equals/f"));
function assert(test, message = '') {
    if (!test) {
        throw new Error(message);
    }
}
function equal(a, b, message = '') {
    return assert(a === b, message);
}
function deepEqual(a, b) {
    return assert((0, f_1.default)(a, b), `${JSON.stringify(a, null, 2)} is not deep equal to ${JSON.stringify(b, null, 2)}`);
}
assert.equal = equal;
assert.deepEqual = deepEqual;
//# sourceMappingURL=assert.js.map