找出这些生成检查为何无法独立规定运费边界。
JavaScript
import assert from "node:assert/strict";
function shippingFeeCents(subtotalCents) {
return subtotalCents >= 5000 ? 0 : 500;
}
const sampledSubtotals = [6000, 7000];
for (const subtotalCents of sampledSubtotals) {
const expected = subtotalCents >= 5000 ? 0 : 500;
assert.equal(shippingFeeCents(subtotalCents), expected);
}