{"publisher":"WESWOO","id":"gift-discount-shipping-threshold","scope":{"zh":"独立演练数据，商家原帖用于说明问题","en":"Independent illustrative records. The forum post supplies the question."},"inputs":{"currency":"USD","units":"cents","item_prices":[7500,6500],"discount":6500,"threshold":9900,"output":["before","after","qualifies","shortfall"]},"checks":[{"condition":"before and after a free gift","expected":[14000,7500,false,2400],"observed":[14000,7500,false,2400]},{"condition":"inclusive threshold at exactly 99","expected":[9900,9900,true,0],"observed":[9900,9900,true,0]},{"condition":"strict threshold at exactly 99","expected":[9900,9900,false,1],"observed":[9900,9900,false,1]},{"condition":"one cent below inclusive threshold","expected":[9899,9899,false,1],"observed":[9899,9899,false,1]}]}