[IMP] add some tests to format's intersperse (from corresponding server tests)

bzr revid: xmo@openerp.com-20111130100347-8jd8nugnjgtj12oj
This commit is contained in:
Xavier Morel 2011-11-30 11:03:47 +01:00
parent 0b1d8c7914
commit 5f9c91621b
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,8 @@ $(document).ready(function () {
equal(g("12345678", [2, 0, 1], '.'), '12.34.56.78');
equal(g("12345678", [2, 0, 0], '.'), '12.34.56.78');
equal(g("12345678", [2, 0, -1], '.'), '12.34.56.78');
equal(g("12345678", [3,3,3,3], '.'), '12.345.678');
equal(g("12345678", [3,0], '.'), '12.345.678');
});
test('format_integer', function () {
openerp.web._t.database.parameters.grouping = [3, 3, 3, 3];