text: /*global QUnit*/
  
  sap.ui.define(['sap/m/Text', '<%= projectNamespaceAMD %>/model/formatter'], function(Text, formatter) {
      'use strict';
  
      QUnit.module('formatter - Currency value');
  
      function currencyValueTestCase(assert, sValue, fExpectedNumber) {
          // Act
          var fCurrency = formatter.currencyValue(sValue);
  
          // Assert
          assert.strictEqual(fCurrency, fExpectedNumber, 'The rounding was correct');
      }
  
      QUnit.test('Should round down a 3 digit number', function(assert) {
          currencyValueTestCase.call(this, assert, '3.123', '3.12');
      });
  
      QUnit.test('Should round up a 3 digit number', function(assert) {
          currencyValueTestCase.call(this, assert, '3.128', '3.13');
      });
  
      QUnit.test('Should round a negative number', function(assert) {
          currencyValueTestCase.call(this, assert, '-3', '-3.00');
      });
  
      QUnit.test('Should round an empty string', function(assert) {
          currencyValueTestCase.call(this, assert, '', '');
      });
  
      QUnit.test('Should round a zero', function(assert) {
          currencyValueTestCase.call(this, assert, '0', '0.00');
      });
  });
  