UT: Initial check in unit tests for amount.js.

This commit is contained in:
Arthur Britto
2012-10-11 16:25:01 -07:00
parent 773f9263dc
commit 8ebceaa53e
2 changed files with 14 additions and 1 deletions

13
test/amount-test.js Normal file
View File

@@ -0,0 +1,13 @@
var buster = require("buster");
var amount = require("../js/amount.js");
buster.testCase("Amount", {
"UInt160" : {
"Parse 0" : function () {
buster.assert.equals(0, amount.UInt160.from_json("0").value);
},
}
});
// vim:sw=2:sts=2:ts=8