Allow mixed letters and numbers in currencies

This commit is contained in:
wltsmrz
2014-09-17 13:39:49 -07:00
parent 344d478b3f
commit 8ef7481858
3 changed files with 5 additions and 5 deletions

View File

@@ -40,8 +40,8 @@ describe('Currency', function() {
});
it('from_json("1D2").to_human()', function() {
var r = currency.from_json("1D2");
assert(!r.is_valid());
assert.strictEqual('XRP', r.to_json());
assert(r.is_valid());
assert.strictEqual('1D2', r.to_json());
});
it('from_json("XAU").to_json() hex', function() {
var r = currency.from_json("XAU");