JS: Failing test. Amount#equals does not compare exponent.

This commit is contained in:
Stefan Thomas
2013-02-21 23:06:12 +01:00
parent a38e17beed
commit aa77f433e4

View File

@@ -218,6 +218,11 @@ buster.testCase("Amount", {
"Divide EUR by XRP, neg, <1" : function () {
buster.assert.equals("-0.05/EUR/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", Amount.from_json("-100/EUR/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh").divide(Amount.from_json("2000")).to_text_full());
}
},
"Amount comparisons" : {
"10 USD != 100 USD" : function () {
buster.refute(Amount.from_json("10/USD/rNDKeo9RrCiRdfsMG8AdoZvNZxHASGzbZL").equals(Amount.from_json("100/USD/rNDKeo9RrCiRdfsMG8AdoZvNZxHASGzbZL")));
}
}
});