JS: Hide some variables.

This commit is contained in:
Arthur Britto
2012-11-06 11:00:55 -08:00
parent e312c19631
commit 7c6c12fdf4
3 changed files with 100 additions and 100 deletions

View File

@@ -13,13 +13,13 @@ var config = require('./config.js');
buster.testCase("Amount", {
"UInt160" : {
"Parse 0" : function () {
buster.assert.equals(nbi(), UInt160.from_json("0").value);
buster.assert.equals(nbi(), UInt160.from_json("0")._value);
},
"Parse 0 export" : function () {
buster.assert.equals(amount.consts.address_xns, UInt160.from_json("0").to_json());
},
"Parse 1" : function () {
buster.assert.equals(new BigInteger([1]), UInt160.from_json("1").value);
buster.assert.equals(new BigInteger([1]), UInt160.from_json("1")._value);
},
"Parse rrrrrrrrrrrrrrrrrrrrrhoLvTp export" : function () {
buster.assert.equals(amount.consts.address_xns, UInt160.from_json("rrrrrrrrrrrrrrrrrrrrrhoLvTp").to_json());