import assert from 'node:assert/strict';
import { formatAmountUsd, sumUsdStrings } from './usdPricing';

assert.equal(formatAmountUsd('1000000', 6, 1), '1');
assert.equal(formatAmountUsd('1000000000000000000', 18, 2000), '2000');
assert.equal(sumUsdStrings(['1.5', '2.25']), '3.75');
assert.equal(sumUsdStrings(['0.000001', '0.000002']), '0.000003');
console.log('checkpoint-core usdPricing ok');
