mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
JS: Fix and another unit-test.
This commit is contained in:
committed by
Stefan Thomas
parent
135fe39db4
commit
e40d8b7b6f
@@ -249,7 +249,7 @@ Currency.from_json = function (j) {
|
||||
: j.clone();
|
||||
};
|
||||
|
||||
currency.is_valid = function (j) {
|
||||
Currency.is_valid = function (j) {
|
||||
return currency.from_json(j).is_valid();
|
||||
};
|
||||
|
||||
|
||||
@@ -38,6 +38,10 @@ buster.testCase("Amount", {
|
||||
"is_valid('rrrrrrrrrrrrrrrrrrrrrhoLvTp')" : function () {
|
||||
buster.assert(UInt160.is_valid("rrrrrrrrrrrrrrrrrrrrrhoLvTp"));
|
||||
},
|
||||
|
||||
"!is_valid('rrrrrrrrrrrrrrrrrrrrrhoLvT')" : function () {
|
||||
buster.refute(UInt160.is_valid("rrrrrrrrrrrrrrrrrrrrrhoLvT"));
|
||||
},
|
||||
},
|
||||
|
||||
"Amount parsing" : {
|
||||
|
||||
Reference in New Issue
Block a user