diff options
author | koichik <koichik@improvement.jp> | 2011-07-30 17:08:59 +0400 |
---|---|---|
committer | koichik <koichik@improvement.jp> | 2011-07-30 18:56:17 +0400 |
commit | d3d8f1b972e1fb99916b32647609ad58f6c16fd9 (patch) | |
tree | fc044ca2079912b5453876f9f5ad4982332dfba0 /test | |
parent | 5501a5a641e388855915f491130df7703bcbf107 (diff) |
Add %% escape to util.format()
Fixes #1273.
Diffstat (limited to 'test')
-rw-r--r-- | test/simple/test-util-format.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/simple/test-util-format.js b/test/simple/test-util-format.js index 2525680b64f..6a497089b19 100644 --- a/test/simple/test-util-format.js +++ b/test/simple/test-util-format.js @@ -43,4 +43,7 @@ assert.equal(util.format('%j', 42), '42'); assert.equal(util.format('%d', '42.0'), '42'); assert.equal(util.format('%d', '42'), '42'); assert.equal(util.format('%s', '42'), '42'); -assert.equal(util.format('%j', '42'), '"42"');
\ No newline at end of file +assert.equal(util.format('%j', '42'), '"42"'); + +assert.equal(util.format('%%s%s', 'foo'), '%sfoo'); + |