From 9ea2fa8c698eb33b3b137a95c4d780b975a1eef9 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Mon, 22 Oct 2012 21:30:29 -0700 Subject: [PATCH] UT: Add another Amount test. --- test/amount-test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/amount-test.js b/test/amount-test.js index a8dce60fa4..10f0fac8d2 100644 --- a/test/amount-test.js +++ b/test/amount-test.js @@ -88,6 +88,9 @@ buster.testCase("Amount", { "Negate non-native -123" : function () { buster.assert.equals("123/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", Amount.from_json("-123/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh").negate().to_text_full()); }, + "Clone non-native -123" : function () { + buster.assert.equals("-123/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", Amount.from_json("-123/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh").clone().to_text_full()); + }, } });