mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
UT: Adjust to new address encoding.
This commit is contained in:
@@ -16,17 +16,17 @@ buster.testCase("Amount", {
|
||||
"Parse native 12.3" : function () {
|
||||
buster.assert.equals("12300000/XNS", amount.Amount.from_json("12.3").to_text_full());
|
||||
},
|
||||
"Parse 123./USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh" : function () {
|
||||
buster.assert.equals("123/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("123./USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh").to_text_full());
|
||||
"Parse 123./USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" : function () {
|
||||
buster.assert.equals("123/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("123./USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh").to_text_full());
|
||||
},
|
||||
"Parse 12300/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh" : function () {
|
||||
buster.assert.equals("12300/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("12300/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh").to_text_full());
|
||||
"Parse 12300/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" : function () {
|
||||
buster.assert.equals("12300/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("12300/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh").to_text_full());
|
||||
},
|
||||
"Parse 12.3/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh" : function () {
|
||||
buster.assert.equals("12.3/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("12.3/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh").to_text_full());
|
||||
"Parse 12.3/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" : function () {
|
||||
buster.assert.equals("12.3/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("12.3/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh").to_text_full());
|
||||
},
|
||||
"Parse 1.2300/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh" : function () {
|
||||
buster.assert.equals("1.23/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("1.2300/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh").to_text_full());
|
||||
"Parse 1.2300/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" : function () {
|
||||
buster.assert.equals("1.23/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("1.2300/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh").to_text_full());
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
@@ -27,37 +27,37 @@ exports.servers = {
|
||||
exports.accounts = {
|
||||
// Users
|
||||
'alice' : {
|
||||
'account' : 'iG1QQv2nh2gi7RCZ1P8YYcBUKCCN633jCn',
|
||||
'account' : 'rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn',
|
||||
'secret' : 'alice',
|
||||
},
|
||||
'bob' : {
|
||||
'account' : 'iPMh7Pr9ct699rZUTWaytJUoHcJ7cgyzrK',
|
||||
'account' : 'rPMh7Pi9ct699iZUTWaytJUoHcJ7cgyziK',
|
||||
'secret' : 'bob',
|
||||
},
|
||||
'carol' : {
|
||||
'account' : 'iH4KEcG9dEwGwpn6AyoWK9cZPLL4RLSmWW',
|
||||
'account' : 'rH4KEcG9dEwGwpn6AyoWK9cZPLL4RLSmWW',
|
||||
'secret' : 'carol',
|
||||
},
|
||||
|
||||
// Nexuses
|
||||
'bitstamp' : {
|
||||
'account' : 'i4jKmc2nQb5yEU6eycefrNKGHTU5NQJASx',
|
||||
'account' : 'r4jKmc2nQb5yEU6eycefiNKGHTU5NQJASx',
|
||||
'secret' : 'bitstamp',
|
||||
},
|
||||
'mtgox' : {
|
||||
'account' : 'iGrhwhaqU8g7ahwAvTq6rX5ivsfcbgZw6v',
|
||||
'account' : 'rGihwhaqU8g7ahwAvTq6iX5rvsfcbgZw6v',
|
||||
'secret' : 'mtgox',
|
||||
},
|
||||
|
||||
// Merchants
|
||||
'amazon' : {
|
||||
'account' : 'ihheXqX7bDnXePJeMHhubDDvw2uUTtenPd',
|
||||
'account' : 'rhheXqX7bDnXePJeMHhubDDvw2uUTtenPd',
|
||||
'secret' : 'amazon',
|
||||
},
|
||||
|
||||
// Master account
|
||||
'root' : {
|
||||
'account' : 'iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh',
|
||||
'account' : 'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
|
||||
'secret' : 'masterpassphrase',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -117,7 +117,7 @@ buster.testCase("Websocket commands", {
|
||||
alpha.request_ledger_entry({
|
||||
'ledger_closed' : r.ledger_closed,
|
||||
'type' : 'account_root',
|
||||
'account_root' : 'iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh'
|
||||
'account_root' : 'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh'
|
||||
} , function (r) {
|
||||
// console.log("account_root: %s", JSON.stringify(r));
|
||||
|
||||
@@ -157,7 +157,7 @@ buster.testCase("Websocket commands", {
|
||||
alpha.request_ledger_entry({
|
||||
'ledger_closed' : r.ledger_closed,
|
||||
'type' : 'account_root',
|
||||
'account_root' : 'iG1QQv2nh2gi7RCZ1P8YYcBUKCCN633jCn'
|
||||
'account_root' : config.accounts.alice.account,
|
||||
}, function (r) {
|
||||
console.log("account_root: %s", JSON.stringify(r));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user