"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deepEqual = exports.equal = exports.assert = void 0;
const f_1 = require("../system/f/comparisson/Equals/f");
function assert(test, message = '') {
    if (!test) {
        throw new Error(message);
    }
}
exports.assert = assert;
function equal(a, b) {
    return assert(a === b);
}
exports.equal = equal;
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)}`);
}
exports.deepEqual = deepEqual;
assert.equal = equal;
assert.deepEqual = deepEqual;
exports.default = assert;
//# sourceMappingURL=assert.js.map