"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const strict_1 = __importDefault(require("node:assert/strict"));
const node_test_1 = require("node:test");
const Amount_js_1 = require("./Amount.js");
(0, node_test_1.describe)("payment amount helpers", () => {
    (0, node_test_1.it)("parses and formats USDT smallest units", () => {
        strict_1.default.equal((0, Amount_js_1.parseTokenUnits)("25", 6), "25000000");
        strict_1.default.equal((0, Amount_js_1.parseTokenUnits)("250.5", 6), "250500000");
        strict_1.default.equal((0, Amount_js_1.formatTokenUnits)("1000000000", 6), "1000");
    });
    (0, node_test_1.it)("calculates only positive balance differences", () => {
        strict_1.default.equal((0, Amount_js_1.positiveDifference)("26000000", "1000000").toString(), "25000000");
        strict_1.default.equal((0, Amount_js_1.positiveDifference)("100", "200").toString(), "0");
    });
});
