Skip to content

Instantly share code, notes, and snippets.

@jsakamoto
Created September 18, 2012 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsakamoto/3743147 to your computer and use it in GitHub Desktop.
Save jsakamoto/3743147 to your computer and use it in GitHub Desktop.
Prepend reference xml commnet version.
/// <reference path="qunit.js" />
/// <reference path="formatAsYen.js" />
test("prepend Yen sign.", function () {
QUnit.equal(formatAsYen(123), "\\123");
});
test("insert comma at par 3characters.", function () {
QUnit.equal(formatAsYen(1234567), "\\1,234,567");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment